In the United States, the National Electrical Code (NEC) strictly mandates specific color assignments for AC power circuits: black or red for hot (ungrounded), white or gray for neutral (grounded), and green or bare copper for equipment ground. However, exceptions exist for switch legs, 277V/480V systems, and DC circuits. Below is the definitive reference chart for US wiring, followed by the specific edge cases that cause the most jobsite errors.
The Complete US Wire Color Code Reference (NEC)
This table covers standard 120V/240V single-phase residential wiring, as well as 277V/480V three-phase commercial colors, per NFPA 70 (NEC) Articles 200, 210, and 250.
| Function | Standard US Color (120V/240V) | 277V/480V 3-Phase Color | NEC Article | Practical Application |
|---|---|---|---|---|
| Hot (Line 1) | Black | Brown | 210.5(C) | Standard 120V receptacles, single-pole breakers |
| Hot (Line 2) | Red | Orange | 210.5(C) | 240V appliances (dryers), 3-way switch travelers |
| Hot (Line 3) | Blue (rare in 120/240V) | Yellow | 210.5(C) | Strictly 3-phase commercial panels |
| Neutral (Grounded) | White or Gray | Gray | 200.6 | Return path for 120V circuits, multi-wire branch circuits |
| Ground (Equipment) | Bare Copper or Green | Green (or Green/Yellow) | 250.119 | Fault current path, bonded to metal boxes and panels |
| Switched Leg | Any color except white/gray/green | N/A | 200.7(C)(2) | Power returning from a switch to a light fixture |
Color codes indicate the intended function of a wire, not its actual state. Previous owners or DIYers may have wired circuits incorrectly. Always de-energize the panel, lock out the breaker, and verify the circuit is dead using a Category III or IV non-contact voltage tester and a digital multimeter before touching any conductor.
Rows People Get Wrong and Faded Wire Protocols
The most dangerous mistakes on the workbench or jobsite happen when electricians and DIYers assume a wire's function based purely on its jacket color without verifying the context. Here are the specific rows and scenarios that cause the most blown breakers, shocked installers, and failed inspections.
The 'White as Hot' Exception (NEC 200.7(C)(2))
The most common code violation involves using a white wire as a hot conductor without re-identifying it. If you are wiring a simple switch loop using 2-wire NM-B (Romex), the white wire must carry the switched hot power back to the fixture. The NEC allows this, but only if you permanently re-identify the white wire at both ends using black electrical tape, paint, or heat shrink. If you open a junction box and see a white wire with black tape wrapped around it, treat it as an ungrounded hot conductor. Never assume a white wire is neutral in a switch box.
The 240V Baseboard Heater Trap
When wiring a 240V baseboard heater or a double-pole 240V outlet using 2-wire NM-B, both the black and white wires are hot (120V each, 180 degrees out of phase). The white wire is not a neutral here. Just like the switch leg, the NEC requires the white wire to be re-identified with a color other than white, gray, or green. Failing to mark it is an instant inspection fail and a severe shock hazard for the next person who opens the panel.
DC Wire Color Codes (Solar and Low Voltage)
If you are building a solar array or a 12V/24V LiFePO4 battery bank, AC color codes do not apply. The US generally follows IEC or ABYC standards for DC, which causes massive confusion when mixing AC and DC panels in an RV or off-grid cabin.
| DC Function | US/ABYC Standard Color | IEC 60446 DC Color | Common Application |
|---|---|---|---|
| Positive (+) | Red | Brown | Solar PV strings, battery bank positive busbar |
| Negative (-) | Black | Blue | Charge controller input, inverter DC ground |
| Grounded Positive | White | Blue | Rare, mostly legacy telecom systems |
| Equipment Ground | Green or Bare | Green/Yellow | Chassis ground, solar panel frame bonding |
Safe Interpretation of Faded or Missing Markings
In older homes, NM-B jackets and wire insulation can yellow, fade, or become brittle. A faded black wire might look brown or dark gray; a degraded white wire might look yellowish. When markings are ambiguous:
- Isolate the circuit: Turn off the main breaker if you cannot confidently identify the branch circuit.
- Use a Multimeter (Voltage Test): With power restored and extreme caution, measure the voltage between the mystery wire and a known, verified equipment ground (like a bare copper wire in a metal box). If you read ~120V, it is a hot conductor. If you read 0V, it is likely a neutral or a disconnected switch leg.
- Use a Multimeter (Continuity Test): With power off, disconnect the wire from the circuit and test continuity to the neutral busbar or ground busbar in the panel to definitively identify its original termination point.
- Re-identify: Once verified, wrap the ends with fresh, high-quality 3M Super 33+ vinyl electrical tape in the correct NEC color to restore the visual code.
US vs. International Standards (IEC and Old UK)
Assuming US color codes apply universally is a fast track to a short circuit if you are repairing imported machinery, working on a European-spec solar inverter, or renovating an older home in a region that previously followed British standards. The International Electrotechnical Commission (IEC) standard 60446, adopted by the EU and the UK, uses entirely different colors for AC power.
| Function | US (NEC) | EU / Modern UK (IEC 60446 / BS 7671) | Old UK (Pre-2004) |
|---|---|---|---|
| Hot (Line 1) | Black | Brown | Red |
| Hot (Line 2) | Red | Black | Yellow |
| Hot (Line 3) | Blue | Grey | Blue |
| Neutral | White / Gray | Blue | Black |
| Ground | Green / Bare | Green & Yellow Stripe | Green / Bare |
The 'Black is Neutral' Shock Hazard
The most critical difference for US-based makers and electricians to memorize is the IEC neutral color. In the US, black is always hot. In the EU and modern UK (post-2004 harmonization), black is the neutral conductor, and brown is the hot conductor. If you buy a European appliance, wire a European-manufactured VFD (Variable Frequency Drive), or install an IEC-spec solar inverter, connecting a US black hot wire to the device's black neutral terminal will instantly destroy the equipment and trip the breaker.
Old UK Wiring (Pre-2004)
If you are consulting older documentation or working on legacy British equipment, the old UK colors are exactly inverted from modern US expectations for single-phase: Red was hot, and Black was neutral. The UK transitioned to IEC colors (Brown/Blue) in 2004 to align with the rest of Europe, but you will still encounter Red/Black wiring in older installations and legacy industrial panels. Always check the manufacturing date plate and wiring diagram on imported equipment before making terminations.
For comprehensive safety guidelines on working with mixed-standard equipment and international wiring, refer to the OSHA Electrical Safety standards and the IEC International Standards catalog. When in doubt, trace the wire, test with a meter, and label it clearly for the next person.






