When tackling a wiring project, one of the most frequent points of confusion is identifying the correct terminal for each wire. The question, "does blue wire go to black or red," is a prime example that highlights the complexity of color-coded wiring systems. The short answer is that it depends entirely on the context, the specific application, and the regional electrical standards being followed. To ensure a safe and functional installation, you must look beyond the color alone and understand the role of the wire.
Understanding Wire Color Standards
Before connecting any cables, it is essential to recognize that wire color standards vary significantly between countries and applications. In regions like North America, the National Electrical Code (NEC) uses colors differently than the regulations in Europe or the United Kingdom. This divergence is the primary reason why a universal answer to the blue wire question does not exist. You must consult the standards specific to your location and the device you are wiring.
North American Practices (USA & Canada)
In North America, the black wire is typically the "hot" or live wire carrying current from the source. The white wire serves as the neutral, providing the return path, while the bare copper or green wire is the ground for safety. In this context, blue is not a standard color for primary power feeds. If you encounter a blue wire in a North American residential setting, it is often repurposed as a traveler in a three-way or four-way switch setup, or it might be used for low-voltage control signals rather than high-voltage power.

European and International Practices
European wiring conventions, governed by the International Electrotechnical Commission (IEC), follow a different logic. Here, the blue wire is designated as the neutral, and the brown wire is the live hot wire. Consequently, in a European appliance or junction box, you would never connect a blue wire to a red wire if red is functioning as the live conductor. Instead, the blue would connect to the other neutral, and the brown (live) would connect to the black.
Application-Specific Scenarios
The context of the installation is the most critical factor in determining the correct connection. A blue wire found in a computer case, an automotive harness, or a piece of consumer electronics will have a specific function that differs from its role in household electrical wiring. Understanding the device's schematic is the only way to avoid damaging the equipment or creating a safety hazard.
Scenario 1: Three-Way Switches in Residential Wiring
One of the most common places a DIYer encounters a blue wire is in the back of a light switch wall plate. When installing or replacing a three-way switch, the blue wire often acts as the "traveler." In this specific configuration, the blue wire connects to another blue or black traveler wire within the box, while the black wire serves as the common terminal. The red wire, if present, usually acts as the second traveler. Therefore, in this specific instance, the blue wire would connect to the black traveler, not the common black wire itself.

Scenario 2: Computer Case Front Panel Connectors
If you are building a PC and looking at the motherboard header, the question shifts from power to function. The color black typically represents the ground (GND) for the entire connector. In these front panel assemblies, the blue wire is usually part of the Power SW (power switch) or Reset SW (reset switch) pair. These switches are mechanical and do not distinguish between polarity; connecting the blue to the black (ground) pin is the standard practice to complete the circuit that tells the computer to turn on.
Safety and Verification
Never assume a wire’s purpose based solely on its color. Even within the same building, wires can be repurposed or colored incorrectly due to previous repairs. Before making any connection, turn off the power at the circuit breaker and verify your connections using a non-contact voltage tester or a multimeter. If you are working with a complex device like an HVAC unit or a smart home system, consulting the equipment’s wiring diagram is the only safe way to confirm that the blue wire should interface with the black or red terminal.





















