When you open a junction box, the insulation color tells you the wire's job. Misinterpreting these colors is the fastest way to trip a breaker, destroy an appliance, or suffer a fatal shock. Below is the definitive reference for electrical color codes for wires across major global standards, followed by the exact decision paths you need for your next rough-in.

The Master Reference: Electrical Color Codes for Wires

Wire color standards are not universal. The US and Canada follow the National Electrical Code (NEC), Europe and most of the world follow IEC 60445, and the UK transitioned from its own legacy standard to the IEC standard in 2004. Always verify which standard applies to your region and the era of the building before touching a conductor.

Function NEC (US / Canada) IEC (Europe / Global) Old UK (Pre-2004)
Protective Ground (PE) Green, Green/Yellow, or Bare Green/Yellow Green (or Bare)
Neutral (N) White or Gray Blue Black
Single-Phase Line (Hot) Black or Red Brown Red
3-Phase Line 1 (L1) Black (120/208V) or Brown (277/480V) Brown Red
3-Phase Line 2 (L2) Red (120/208V) or Orange (277/480V) Black Yellow
3-Phase Line 3 (L3) Blue (120/208V) or Yellow (277/480V) Grey Blue

Sources: NFPA 70 (NEC), IEC 60445.

The 'Rows People Get Wrong' Trap

Memorizing the table above is only half the battle. On the jobsite, legacy wiring, switch loops, and specific transformer configurations create dangerous exceptions.

⚠️ The Switch Loop White Wire: In a standard 120V switch loop, power goes to the light fixture first, then a 2-wire cable drops down to the switch. The white wire in this drop is NOT a neutral; it is the constant hot feed. Per NEC Article 200.7, this white wire must be re-identified with black tape or paint at both ends. If you treat it as a neutral and bond it to ground, you will create a dead short the moment the switch is turned on.
⚠️ The High-Leg Delta (Orange) Trap: In older commercial buildings with 120/240V 3-phase delta service, two phases measure 120V to ground, but the 'high leg' (wild leg) measures 208V to ground. The NEC strictly mandates this high leg be identified with Orange insulation. If you mistakenly wire a 120V appliance to the orange leg, you will instantly fry the appliance and create a fire hazard. Never assume Black/Red/Blue in a 3-phase panel.

Legacy Cloth and Knob-and-Tube Wiring

If you are working in a home built before 1950, do not trust the colors. Early cloth-braided wiring often used white for the hot conductor and black for the neutral, or sometimes both wires were identical faded gray. Always treat unverified legacy wiring as energized until tested.

Decision Tree: Picking the Right Color for Your Next Wire Run

Use this decision matrix to select the exact cable and termination method for common residential tasks. This assumes standard US/Canada NEC rules.

If your task is... Then pull this cable... And terminate like this (Concrete Pick)
Wiring a standard 120V 15A/20A receptacle 14/2 or 12/2 NM-B (Romex) Black to Brass (Hot), White to Silver (Neutral), Bare to Green (Ground).
Wiring a 240V baseboard heater (no neutral required) 12/2 or 10/2 NM-B Black to L1, White wrapped in black tape to L2, Bare to Ground. (Do not leave white bare).
Wiring a 3-way switch circuit 14/3 or 12/3 NM-B Black to Common screw, Red and White (taped black at ends) to Traveler screws.
Running a 240V/120V dryer or range feeder 10/3 or 8/3 NM-B (or THHN in conduit) Black to L1, Red to L2, White to Neutral bus, Bare to Ground bus.

Faded, Painted, or Missing? How to Safely Identify Unknown Wires

Never trust color alone in an existing panel or junction box. Painters frequently overspray wires, and UV exposure or heat can bleach THHN insulation until black looks gray. When markings are compromised, follow this strict verification sequence:

  1. De-energize and Verify Dead: Turn off the breaker and use a non-contact voltage tester (NCVT) to confirm the circuit is dead. Open the panel or box.
  2. Isolate the Ground: Identify the bare copper or green wire. Visually trace it to the grounding bus bar or a known grounded metal box. This is your reference point.
  3. Energize and Test for Hot: Turn the breaker back on. Use the NCVT to find the always-hot conductor. Mark it immediately with black tape.
  4. Measure Line-to-Neutral vs. Line-to-Ground: Set your multimeter to AC Voltage (LoZ mode if available to prevent ghost voltage readings). Measure between the suspected hot and the white/gray wire. It should read ~120V. Measure between the white/gray wire and the bare ground. It should read < 2V. If you read 120V between white and ground, the white wire is carrying current (a shared neutral or bootleg ground) and is highly dangerous.
  5. De-energize and Permanently Mark: Turn the power back off and apply fresh, high-quality vinyl tape to properly identify the conductors before terminating.
💡 Pro Tip: Defeating Ghost Voltage
When testing long, de-energized runs parallel to live wires, standard high-impedance digital multimeters will often display 40V to 80V of 'ghost' induced voltage, making you think a wire is hot. Switch your meter to LoZ (Low Impedance) mode, or use a solenoid voltage tester (Wiggie), which draws enough current to collapse ghost voltages to zero.

Re-Identification Rules: When Tape is Legal (and When It Isn't)

The NEC allows you to change the function of a wire using tape or paint, but only in one direction: you can demote a grounded/neutral wire to a hot wire, but you can never promote a hot wire to a neutral or ground.

What You CAN Do

  • White to Hot: You can use a white wire as a hot conductor (like in a switch loop or a 240V appliance) IF you permanently re-identify it with black or red tape at every point the wire is visible and accessible (both ends, and inside every junction box it passes through).
  • White to Switched Hot: In modern 3-way wiring, a white wire is often used as a traveler or switched leg. It must be taped at both ends.

What You CANNOT Do

  • Black to Neutral: You cannot tape a black wire white and use it as a neutral. The NEC requires the grounded conductor to be white or gray throughout the system to prevent electricians from touching what they assume is a hot wire, only to find it's carrying return current.
  • Any Color to Ground: You cannot tape a black or white wire green and use it as an equipment grounding conductor. Grounds must be bare, green, or green with a yellow stripe.
🛒 The Right Tape for the Job
Do not use cheap, paper-based electrical tape or generic utility tape for wire re-identification. The heat inside a loaded breaker panel will melt the adhesive, causing the tape to peel off and expose the original color. Buy 3M Super 33+ Vinyl Electrical Tape (or equivalent 7-mil minimum PVC tape). It is rated for 105°C (220°F) and will stay bonded for decades.

By strictly adhering to these color codes, verifying unknown wires with a meter, and using the correct re-identification materials, you ensure your wiring is safe, code-compliant, and easily understood by the next electrician who opens the box.