The color code for electricity is not universal; a wire that is safely grounded in one country could be a lethal line conductor in another. Whether you are wiring a 240V split-phase subpanel in North America, troubleshooting a 3-phase motor in the EU, or restoring 1950s knob-and-tube, relying on memory or assuming a single global standard is a primary cause of arc faults and electrocution. Below is the definitive reference for AC mains and DC low-voltage conductor identification.
| Function | US / Canada (NEC) | EU / Intl (IEC 60446) | UK (Pre-2004 Legacy) |
|---|---|---|---|
| Line (Hot / Phase 1) | Black | Brown | Red |
| Line 2 (Hot / Phase 2) | Red (or Blue) | Black | Yellow |
| Line 3 (Hot / Phase 3) | Blue | Grey | Blue |
| Neutral | White or Grey | Blue | Black |
| Earth (Ground) | Bare, Green, or Green/Yellow | Green/Yellow | Green/Yellow (or Bare) |
Decoding the AC Mains Color Code for Electricity
Understanding the table above requires knowing how these standards are enforced in practice. In North America, the National Fire Protection Association (NFPA) dictates the National Electrical Code (NEC). The NEC strictly reserves white, grey, and green for neutral and ground, but it allows significant flexibility for ungrounded (hot) conductors, provided they are not white, grey, or green.
Rows People Get Wrong (and Why It Matters)
- The UK Legacy Neutral Trap: If you are working on a UK home wired before April 2004, the Neutral wire is Black, and the Line wire is Red. To a US-trained electrician, black means 'hot'. Connecting a US-style device or assuming the black wire is ground/neutral in an old UK installation will result in a dead short or severe shock. The UK harmonized with the IEC (Brown=Line, Blue=Neutral) in 2004, but millions of legacy circuits remain active.
- White Wires Used as Hot (Switched Legs): In US residential wiring, a 2-wire NM-B (Romex) cable contains one black and one white wire. When wiring a simple switch loop, the white wire is often sent down to the switch to carry the hot feed, while the black wire returns the switched hot to the fixture. Per NEC Article 200.7, that white wire must be permanently re-identified with black or red phase tape at both terminations. If the tape falls off over 20 years, the next person will assume it is a neutral.
- 240V Split-Phase vs. 3-Phase: In a standard US 240V circuit (like a dryer or baseboard heater), you will see Black and Red. Both are hot (120V to ground, 240V line-to-line). Neither is a neutral. However, in a 120/208V 3-phase wye system, Black, Red, and Blue are all hot, and White is the neutral. Confusing a 240V pure load with a 208V 3-phase load will destroy single-phase appliances.
DC and Low-Voltage Wiring Color Standards
The color code for electricity changes drastically when you drop below 50V AC or move into direct current (DC) systems. Solar arrays, telecom racks, automotive harnesses, and 12V/24V LiFePO4 battery banks all use different conventions. The International Electrotechnical Commission (IEC) provides the baseline for DC, but industry-specific legacy standards often override it in the field.
| Function | Standard DC (IEC 60446) | US Telecom (-48V) | Automotive (12V/24V) |
|---|---|---|---|
| Positive (+) | Brown | Red | Red |
| Negative (-) | Blue | Black | Black |
| Ground / Chassis | Green/Yellow | Green (or Green/Yellow) | White (or Black w/ White trace) |
| Center Tap / Midpoint | Light Blue | N/A | N/A |
Contextual Application for DC Systems
Solar and Battery Banks: Most modern solar charge controllers and 48V server-rack batteries (like EG4 or SOK) use standard IEC colors: Brown for positive, Blue for negative. However, many US-based DIY solar kits still ship with Red (Positive) and Black (Negative) Anderson connectors and ring terminals. Always trace the wire to the terminal block label rather than trusting the jacket color on aftermarket harnesses.
Telecom (-48V DC): Telecom uses a positive-ground system. The battery bank's positive terminal is tied to earth ground, making the negative terminal the 'hot' or 'live' return. In this architecture, the Black wire is the dangerous, current-carrying conductor, while Red or Green is grounded. Applying standard DC assumptions to a telecom rack will result in catastrophic short circuits.
Faded, Missing, or Mixed Wiring: Safe Verification Protocols
When working on structures built before 1970, or industrial panels subjected to high ambient heat, the color code for electricity degrades. Rubber-insulated wires from the 1940s and 1950s are notorious for color shifting: black insulation oxidizes to a dull grey, and white insulation yellows or browns from heat exposure. Furthermore, cloth-braided wires often lose their outer dye entirely.
The 4-Step Verification Protocol for Unmarked Wires
If you open a junction box and cannot confidently identify the conductors by color, follow this strict diagnostic sequence:
- Isolate and De-energize: Turn off the main breaker or the specific branch circuit breaker. If the panel is unlabeled, shut off the main. Apply a lockout/tagout (LOTO) device if you are in a shared or commercial space.
- Non-Contact Voltage (NCV) Sweep: Use a modern NCV tester (like a Fluke 2AC or Klein NCVT-3) to sweep the panel and box. Note that NCV testers can yield false negatives on heavily shielded or deeply buried wires, and false positives from capacitive coupling (induced voltage from adjacent live wires).
- Multimeter Dead-Test (The Gold Standard): Set your multimeter to AC Voltage (V~). Test Line-to-Ground, Line-to-Neutral, and Neutral-to-Ground. A true dead circuit will read < 0.5V across all combinations. If you read 120V (or 230V in the EU) on any pairing, the circuit is still live, or you are measuring induced ghost voltage on a floating neutral.
- Continuity and Re-identification: Once verified dead, use the multimeter's continuity (beep) mode to trace which wire connects to which terminal. Immediately apply colored heat-shrink tubing or UL-listed phase tape (e.g., 3M Scotch 35) to re-establish the correct color code for electricity. Do not rely on Sharpie markers, as the ink fades and is not recognized by inspectors.
Ultimately, the color code for electricity is a vital communication tool, but it is only as reliable as the last person who terminated the wire. Treat every conductor as live until your meter proves otherwise, and always defer to your local Authority Having Jurisdiction (AHJ) when regional amendments override national baseline standards.






