Before you strip a single wire or terminate a lug, you need to know exactly what the insulation colors mean. Misinterpreting a conductor's role can lead to dead shorts, equipment destruction, or lethal shocks. Here is the complete, no-nonsense reference for AC mains wiring color codes across the major global standards.

⚠️ MAINS VOLTAGE WARNING: Any work involving circuits over 50V AC requires de-energizing the breaker, locking/tagging the panel, and verifying the circuit is dead with a known-working digital multimeter. NEC-style guidance provided here is for educational reference; your local Authority Having Jurisdiction (AHJ) has final legal authority.

The Master Wiring Color Codes Reference Table

The table below maps the primary AC mains conductor functions to their required insulation colors under the three most common standards encountered in residential and commercial wiring. Use this as your bench reference.

Conductor Function NEC (US / Canada) IEC (EU / UK / AU / NZ) Old UK (Pre-2004)
Protective Earth (PE) Bare, Green, or Green/Yellow Green/Yellow Green
Neutral (N) White or Gray Blue Black
Line / Hot (Single Phase) Black or Red Brown Red
Line / Hot (240V Split / L2) Red or Blue Black (w/ brown sleeve) Yellow
Line / Hot (3-Phase L3) Blue (120/208V) or Yellow (277/480V) Grey Blue

Sources: NFPA 70 National Electrical Code, UK Health and Safety Executive (HSE).

Regional Variants and the "Rows People Get Wrong"

Knowing the table is only half the battle. The danger lies in assuming a universal standard or misinterpreting exceptions. Here is how to determine which standard applies to you, followed by the specific table rows that cause the most bench and jobsite errors.

Which Standard Applies to Your Region?

  • North America (US/Canada): Governed by the NEC (NFPA 70) and CEC. You will primarily see NM-B (Romex) and THHN in conduit using Black/White/Bare or Red/Black/White/Bare configurations.
  • Europe, UK, Australia, New Zealand: Governed by IEC 60446 and local harmonized standards (like BS 7671 in the UK). You will see Brown/Blue/Green-Yellow.
  • Legacy Systems: If you are working in a UK home built before 2004, or a US home built before the 1960s, the colors will not match modern tables. Treat every wire as live until proven otherwise.

The Rows People Get Wrong

  1. White/Gray as a Hot Conductor: Under NEC 200.7(C)(1), a white wire can be used as an ungrounded (hot) conductor in specific scenarios, such as a 3-way switch loop or feeding a 240V split-phase appliance (like a dryer). The code requires it to be re-identified with black tape or paint at both ends. The mistake: DIYers assume white is always a safe neutral. If you open a switch box and see a white wire capped with a black wire, that white wire is likely carrying 120V. Always test it.
  2. Green/Yellow vs. Bare Copper: IEC strictly mandates green/yellow striped insulation for the Protective Earth (PE). The NEC allows bare copper. The mistake: When importing IEC-rated machinery or using international power supplies, techs sometimes mistake a green/yellow wire for a signal wire or try to use it as a neutral because they aren't used to the stripe. It is strictly earth ground.
  3. The Old UK Black Neutral: Pre-2004 UK wiring used Black for Neutral and Red for Live. Modern IEC uses Blue for Neutral and Brown for Live. The mistake: Splicing a modern IEC appliance (blue neutral) into an old UK junction box (black neutral) without verifying the function. If you accidentally cross the old red live with the new blue neutral, you will dead-short the circuit.

Safe Interpretation When Markings Are Faded or Missing

In older homes, white NM-B insulation can yellow to the point of looking tan or brown, and previous owners may have painted over exposed wires in junction boxes, hiding their true color. Never trust visual inspection in a legacy panel.

Pro-Tip: Keep a roll of 3M Super 33+ vinyl electrical tape in black, white, red, and green on your belt. If you ever have to re-identify a wire, wrap it completely at the termination point and 6 inches back.

The Verification Protocol

When colors are compromised, follow this exact measurement sequence using a CAT III or CAT IV rated Digital Multimeter (DMM) like a Fluke 117 or Klein Tools MM600:

  1. Initial Scan: Use a Non-Contact Voltage Tester (NCVT) to identify which wires are energized. This is a screening tool, not a verification tool.
  2. DMM Setup: Set your meter to AC Volts (V~). Insert the black probe into the known ground (bare copper or grounded metal box) and the red probe into the suspect wire.
  3. Read the Thresholds:
    • Hot to Ground: Should read between 114V and 126V (for a 120V nominal system). If it reads 0V, it is not hot.
    • Neutral to Ground: Should read less than 2V. If it reads 120V, the neutral is open or disconnected upstream, and the wire is floating at line potential.
    • Hot to Neutral: Should read 114V to 126V.
  4. Re-identify: Once verified, immediately apply colored heat-shrink tubing or high-quality electrical tape to both ends of the conductor to restore the visual code.

For deeper compliance references on grounding and identification, consult OSHA 1910.304 Wiring Design and Protection.

Frequently Asked Questions About Wiring Color Codes

Can I use any color wire for a hot leg if I tape the ends?

Under the NEC, you can re-identify a white or gray neutral wire to serve as a hot leg (using black or red tape) in specific cable assemblies like switch loops or 240V appliance feeds. However, you can never use a green, bare, or green/yellow wire for anything other than an equipment grounding conductor. If you are pulling individual THHN wires in conduit for a new 120V circuit, you must use black (or red/blue) for hot and white for neutral from the spool. Tape is not a substitute for proper wire color when pulling new conduit runs.

What are the wiring color codes for 277/480V 3-phase commercial systems?

Commercial and industrial 3-phase systems use a different color palette to prevent accidental cross-connection with 120/208V systems. Under standard NEC practice (NEC 215.12), the ungrounded (hot) conductors for 277/480V Y-systems are typically Brown (L1), Orange (L2), and Yellow (L3). The grounded neutral is Gray (not white, to distinguish it from the 120V neutral), and the ground remains bare or green. Always verify the specific facility's color-code legend, as some older plants may use custom taping schemes.

Why does my appliance have a blue wire if I'm in the US?

If you open a US-market appliance (like a refrigerator or HVAC control board) and see blue wires, you are likely looking at either internal low-voltage DC control circuits or an IEC-manufactured component. In internal DC logic, blue is often used for DC negative or specific signal lines. In IEC-manufactured sub-assemblies, blue is the AC neutral. Never assume an internal blue wire is a 120V AC hot leg. Trace the wire back to the transformer or terminal block, check the schematic glued to the inside of the access panel, and test with a DMM before splicing.