Identifying mains conductors correctly is the baseline for every safe electrical installation, but the rules change drastically depending on which side of the ocean—or which decade—you are working in. Below is the definitive reference for global mains wiring identification, followed by the practical edge cases that cause the most bench and jobsite failures.
The Master Colour Code Wiring Reference Table
This table covers standard single-phase and three-phase AC mains wiring. Always verify the specific installation date and local amendments before trusting the jacket or insulation colors in an existing wall.
| Function / Conductor | NEC (US & Canada) | IEC 60446 (EU & UK Post-2004) | Old UK (Pre-2004) |
|---|---|---|---|
| Line 1 (Phase A) | Black | Brown | Red |
| Line 2 (Phase B) | Red | Black | Yellow |
| Line 3 (Phase C) | Blue | Grey | Blue |
| Neutral (N) | White or Grey | Blue | Black |
| Earth / Ground (PE) | Green, Green/Yellow, or Bare | Green/Yellow | Green/Yellow or Bare |
| High-Leg Delta (Wild Leg) | Orange (Mandated) | N/A | N/A |
Regional Standards: Which Code Applies to You?
The color of a wire's insulation is legally dictated by the standard adopted by your local Authority Having Jurisdiction (AHJ). Assuming a universal standard is a fast track to a dead short or a shock hazard.
North America (NEC / NFPA 70): The National Electrical Code strictly reserves White and Grey for grounded (neutral) conductors, and Green or Bare for equipment grounding conductors. The 2020 and 2023 NEC updates reinforced the use of Grey for neutral to avoid confusion with the old practice of using white for everything. For 277/480V three-phase systems, the phase colors shift to Brown, Orange, and Yellow, with Grey remaining the neutral.
Europe & Modern UK (IEC / BS 7671): The UK harmonized with the European IEC 60446 standard in 2004 (fully enforced by 2006). This shifted the UK from its legacy Red/Black system to the Brown/Blue system. If you are working in a UK home built after 2006, expect Brown (Live) and Blue (Neutral). The IET Wiring Regulations (BS 7671) mandate that Green/Yellow is exclusively for earth; using it for anything else is a severe code violation.
The 'Rows People Get Wrong' Notes
Reference tables look clean on paper, but real-world wiring involves switch loops, multi-wire branch circuits (MWBC), and legacy transition periods. Here is where the mistakes happen:
- The High-Leg Delta Trap (NEC): In a 240V three-phase delta system with a center-tapped neutral, Phase B (the 'wild leg' or 'high leg') measures 208V to ground, while Phases A and C measure 120V to ground. The NEC strictly mandates this high leg be identified by Orange insulation or orange tape. If an installer mistakenly uses Red or Black for the high leg and lands it on a standard 120V breaker, the connected appliance will instantly fry at 208V.
- White Wires Used as Hot (Switch Loops): In North American 2-wire switch loops, the white wire in the NM-B cable is often sent down to the switch as the ungrounded (hot) line. The NEC permits this only if the white wire is permanently re-identified with black or red tape at both ends. If you open a switch box and see a white wire with no tape connected to the brass screw, it is carrying 120V. Treat it as a hot.
- Old UK Black Neutral vs. IEC Black Phase: This is the most dangerous cross-over for international makers or expats. In pre-2004 UK wiring, Black is the Neutral. In modern IEC/EU wiring, Black is Phase B (Hot). If you are integrating a modern European appliance into an older UK ring main, or vice versa, you must explicitly test the conductors. Relying on color memory here will result in a direct phase-to-phase short.
- Multi-Wire Branch Circuits (MWBC): A standard 12/3 or 14/3 NM-B cable contains Black, Red, White, and Bare. The Black and Red are intended to be on opposite legs of the split-phase panel (240V between them) sharing the White neutral. If an installer puts both Black and Red on the same bus bar (0V between them), the neutral wire will carry the sum of both loads instead of the difference, overheating and potentially melting the insulation inside the wall.
Safe Interpretation of Faded or Missing Markings
Insulation fades, painters tape falls off, and old cloth-covered wires lose their identifiers entirely. When you cannot trust the color code, you must rely on electrical physics to identify the conductors.
Required Tool: A CAT III (600V) or CAT IV digital multimeter (DMM) or a solenoid voltage tester. Do not rely solely on non-contact voltage testers (NCVTs), as they can trigger on phantom voltage from adjacent live wires in the same conduit.
- Establish a Known Ground: Identify a verified grounding point (like a metal junction box known to be bonded, or a cold water pipe with a verified ground clamp).
- Measure Conductor-to-Ground:
- If you read nominal mains voltage (e.g., 114V–126V in the US, 220V–250V in the UK/EU), the conductor is an ungrounded hot (Line).
- If you read 0V to 5V, the conductor is either a Neutral, a disconnected hot, or a ground.
- Differentiate Neutral from Ground: Measure the voltage between the suspected Neutral and the known Ground while the circuit is under a heavy load (e.g., a space heater running on the circuit).
- A true Neutral will show a slight voltage drop (typically 0.5V to 3V) due to the current flowing through the wire's resistance.
- A true Ground will show exactly 0.0V because it carries no current under normal operation.
- Tag Immediately: Once identified, wrap the ends of the unmarked wires with high-quality vinyl electrical tape (3M Super 33+ or equivalent) matching the correct regional color code. Do not rely on memory.
Frequently Asked Questions
What is the colour code wiring for a 3-way switch?
In North American NEC wiring, there is no strict mandated color for the 'traveler' wires that run between two 3-way switches. In standard 14/3 or 12/3 NM-B cable, the Red and Black wires are typically used as travelers, while the White is the neutral (which now must be present at the switch box per NEC 404.2(C) for smart switches) and the Bare is ground. The 'Common' screw on the switch (usually black or a darker brass) connects to either the Line (hot from the panel) or the Load (wire going to the light fixture). Because travelers alternate between hot and switched-hot depending on the toggle position, always test both traveler wires with a meter; neither is safe to touch when the breaker is on.
Can I use old UK colour code wiring in a new 2026 extension?
No. Under BS 7671, any new electrical installation work must use the harmonized IEC colors (Brown for Live, Blue for Neutral, Green/Yellow for Earth). You cannot pull new Red/Black cables for an extension. If your new extension must connect to an existing legacy circuit in the consumer unit or a junction box, you must use the new harmonized colors for the new run. At the exact point of connection, you must apply clear, permanent warning labels stating 'CARE: OLD WIRING COLOURS' to alert anyone working on the joint in the future. Always transition at an accessible junction box or the distribution board, never hidden inside a wall cavity.
Why is my neutral wire black in my ceiling fan box?
If you are in North America and find a black wire acting as a neutral, you are likely looking at a miswired fixture or a repurposed switch loop. In a standard US ceiling fan box, the white wire from the NM-B cable is the neutral, and the black (and sometimes red for a separate light kit) are the hots. However, if you are in the UK or Europe, a black wire in a pre-2004 installation is the correct neutral. Conversely, in modern IEC wiring, black is Phase B. If you are in the US and a white wire is unavailable, some installers illegally use black for neutral in low-voltage or DC control circuits, but doing so at mains voltage is a direct NEC violation that will cause the next electrician to assume the wire is hot, leading to severe shock risk. Test the black wire to ground: if it reads 0V under load and shows continuity to the panel's neutral bar (with power off), it is a misidentified neutral that needs to be re-tagged with white tape immediately.






