When you open a junction box, the insulation color tells you the wire's job. But mixing up a neutral and a hot, or misinterpreting a legacy UK ring main, can lead to a dead short or a lethal shock. Below is the definitive electrical wiring color code reference for modern and legacy systems, followed by field rules for when those colors are faded, painted over, or missing entirely.
The Master Electrical Wiring Color Code Reference
The two dominant global standards for AC power wiring are the US National Electrical Code (NEC/NFPA 70) and the International Electrotechnical Commission (IEC 60446), which governs the EU, UK, and most of the world. Here is the baseline spec sheet for single-phase and three-phase systems.
| Function | NEC (US / Canada) | IEC (EU / Modern UK) | Practical Meaning in the Field |
|---|---|---|---|
| Line / Hot (Single Phase) | Black or Red | Brown | Carries the full source voltage. Always assume it is live until tested dead. |
| Neutral (Grounded Conductor) | White or Gray | Blue | Carries return current. Can have a voltage drop under load; treat with respect. |
| Ground / Earth (Equipment Grounding) | Bare Copper or Green | Green/Yellow Stripe | Safety path for fault current. Should never carry current during normal operation. |
| 3-Phase Line 1 (A) | Black (or Brown) | Brown | First phase of a 3-phase motor or panel feeder. |
| 3-Phase Line 2 (B) | Red (or Orange*) | Black | Second phase. *See high-leg delta note below. |
| 3-Phase Line 3 (C) | Blue (or Yellow) | Gray | Third phase. |
Regional Variants and Legacy Systems
If you are working in an older building, the wire in the wall might not match the modern table above. Local code and the year of installation dictate what you will find.
Legacy UK and EU (Pre-2004)
Before the UK harmonized with the IEC standard in 2004, the UK electrical wiring color code used Red for Line (Hot), Black for Neutral, and bare or Green for Earth. If you open a pre-2004 UK consumer unit or junction box, black is a live return path (neutral), not a hot wire, and red is the hot. Mixing these up with modern IEC colors (where black is a 3-phase hot and blue is neutral) is a common cause of retrofit failures.
Canadian High-Leg Delta (CEC)
While the Canadian Electrical Code (CEC) largely mirrors the NEC, 3-phase high-leg delta systems (often found in older commercial buildings with 120/240V loads) require specific attention. The center-tapped winding (usually Phase B or L2) yields 208V to ground instead of 120V. Both the NEC and CEC mandate this high leg must be colored Orange. If you see an orange wire in a 3-phase panel, never connect it to a standard 120V single-pole breaker.
The 'Rows People Get Wrong' Field Notes
Even when wires are factory-colored correctly, installers and DIYers frequently make dangerous assumptions. Here are the most common field errors:
- White as a Hot Conductor: Under NEC Article 200.7(C)(2), a white or gray wire can be used as an ungrounded (hot) conductor in a switch loop or a 240V appliance cable (like a water heater), provided it is permanently re-identified with black tape or paint at every termination. People often forget the tape, see a white wire, and assume it is a safe neutral. Always test it.
- The 3-Way Switch Traveler: In a 3-way switch setup using 14/3 or 12/3 NM-B cable, the white and red wires are often used as 'travelers' between the two switches. The white traveler is not a neutral; it carries switched hot voltage.
- Green vs. Bare Copper: Both serve as the equipment grounding conductor. However, you can never use a green-insulated wire as a current-carrying hot or neutral. Bare copper is strictly for grounding and bonding.
- Phantom Voltage on Neutrals: When testing a white wire to ground with a high-impedance digital multimeter, you might read 40V-90V on a disconnected neutral due to capacitive coupling from adjacent hot wires. This is 'phantom voltage.' Use your meter's LoZ (Low Impedance) setting or an analog solenoid tester (Wiggy) to confirm if the voltage is real or induced.
Safe Interpretation When Markings Are Faded or Missing
In older homes, NM-B (Romex) jackets degrade, white wires turn yellow or brown from heat and age, and DIYers sometimes use whatever scrap wire was left in the truck. When you cannot trust the insulation color, follow this strict verification protocol.
- De-energize and Lock Out: Turn off the breaker and verify the panel is dead using a known-working contact voltage tester.
- Identify the Ground First: With the power off, set your multimeter to Continuity (or Ohms). Test each unknown wire against the bare copper ground bus in the panel. The wire that reads less than 1.0 ohm is your equipment ground. Mark it with green tape.
- Energize and Test AC Voltage: Turn the breaker back on. Set your multimeter to AC Voltage (600V range).
- Test Wire A to Wire B (Ground). If it reads ~120V (or ~230V in IEC regions), Wire A is your Hot.
- Test Wire C to Wire A (Hot). If it reads ~120V/230V, Wire C is your Neutral.
- Verify Neutral-to-Ground: Test Wire C (Neutral) to Wire B (Ground). It should read less than 2V (ideally under 0.5V). If it reads line voltage, your neutral is open or floating upstream.
- Re-identify: Once verified, de-energize again and apply colored heat shrink or electrical tape at both ends of the run to match the correct standard before terminating.
Decision Path: Which Wire to Pull for Your Circuit
Stop guessing at the hardware store. Use this decision tree to select the exact cable type and color configuration for your next rough-in. These recommendations assume standard residential branch circuits in North America (NEC) and the EU/UK (IEC).
| Circuit Scenario | Region | Cable Type to Buy | Exact Colors / Conductors Required |
|---|---|---|---|
| Standard 120V 20A Receptacle (Kitchen/Bath) | US / Canada | 12/2 NM-B (e.g., Southwire or Cerro) | Black (Hot), White (Neutral), Bare (Ground) |
| 240V 30A Electric Dryer | US / Canada | 10/3 NM-B | Black (Hot 1), Red (Hot 2), White (Neutral), Bare (Ground) |
| 3-Way Staircase Lighting Switch Loop | US / Canada | 14/3 or 12/3 NM-B | Black (Common), Red (Traveler), White (Traveler - must tape black), Bare |
| Standard 230V 16A/20A Socket Outlet | UK / EU | 2.5mm² Twin & Earth (e.g., Prysmian) | Brown (Line), Blue (Neutral), Green/Yellow (Earth) |
| UK 2-Way Lighting Circuit (Staircase) | UK / EU | 1.5mm² 3-Core & Earth | Brown (Common), Black (Traveler - sleeve brown), Gray (Traveler - sleeve brown), Green/Yellow |






