The standard color code for wire depends entirely on your region and whether you are wiring AC mains or DC circuits. In the US (NEC), black and red are hot, white is neutral, and bare or green is ground. In the EU and modern UK (IEC), brown is hot, blue is neutral, and green/yellow is ground. Below is the complete master reference for immediate jobsite use.

The Master Wire Color Code Reference Table

This table covers the most common residential and light-commercial AC wiring standards. Always verify the specific standard for your region before terminating any conductors.

Function US AC (NEC 120/240V) EU & Modern UK (IEC 60446) Old UK (Pre-2004) US DC (Solar/Auto)
Protective Earth / Ground Bare, Green, or Green/Yellow Green/Yellow Bare or Green Green or Green/Yellow
Neutral (Grounded) White or Gray Blue Black White or Black (Auto)
Single Phase (Hot/Live) Black Brown Red Red
2nd Phase (Hot/Live) Red Black (with brown sleeve) Yellow N/A
3rd Phase (Hot/Live) Blue (or Brown/Orange/Yellow for 277/480V) Gray Blue N/A

Note: For US 3-phase commercial systems (277/480V), the NEC mandates Brown, Orange, and Yellow for phases A, B, and C respectively, with Gray as the neutral. Always confirm the system voltage before assuming residential colors apply in a commercial panel.

Rows People Get Wrong (and Why It Matters)

Memorizing the chart is easy; applying it in older homes or complex switch loops is where mistakes happen. Here are the most common color code misinterpretations and how to handle them safely.

1. The White Wire Used as a Hot (Switch Loops)

In standard US residential wiring, a white wire is strictly a neutral. However, NEC 310.12(C)(2) permits a white wire to be used as a hot (ungrounded) conductor in a single-pole switch loop. Because standard 2-wire NM-B cable only contains a black and a white conductor, electricians use the white wire to carry the hot feed down to the switch, and the black wire to carry the switched hot back up to the light.

The Rule: If a white wire is used as a hot, it must be permanently re-identified at both ends using black or red electrical tape, or heat shrink tubing. If you open a junction box and see a white wire connected to a black wire with a wire nut and no tape, it is a code violation and a shock hazard.

2. The Old UK vs. Modern EU Color Clash

If you are working on a property in the UK built before 2004, you will encounter the old BS 7671 colors: Red (Live) and Black (Neutral). In 2004, the UK harmonized with the IEC 60446 standard to match the rest of Europe: Brown (Live) and Blue (Neutral).

The Hazard: In homes that have had partial extensions or rewires, you may find both color schemes in the same consumer unit. A modern blue wire (neutral) connected to an old red wire (live) creates a dead short. The UK Health and Safety Executive (HSE) explicitly warns that mixed-color installations require clear warning labels at the distribution board.

3. DC Ground vs. AC Ground Confusion

When wiring a solar array or a 12V automotive circuit, do not use bare copper as your DC negative return path. In DC systems, the negative return carries the full load current back to the source, whereas an AC ground wire only carries current during a fault. Always use insulated black wire for DC negative, and reserve green/green-yellow strictly for the chassis safety ground.

Safe Interpretation When Markings and Colors Fade

⚠️ WARNING: Never assume a wire's function based solely on its jacket color. UV exposure, heat degradation, and previous DIY painters spraying over exposed wires can completely mask the original color. Always treat unverified wires as energized.

When you encounter a mystery box, faded wires, or a bundle wrapped entirely in black electrical tape, follow this strict verification protocol before making any terminations:

  1. De-energize and Lock Out: Turn off the main breaker or the specific branch circuit breaker. Use a lockout/tagout device if you are not the only person in the building.
  2. Verify Dead with a Tester: Use a Non-Contact Voltage Tester (NCVT) to check the outside of the wire nuts. Then, use a CAT III or CAT IV multimeter set to AC Voltage (600V range) to test between the suspected hot and a known ground. The reading must be 0.0V.
  3. Identify the Neutral: Once the circuit is confirmed dead, separate the white/blue wires from the bare/green wires. In a properly wired system, the neutral and ground will show near 0 ohms of continuity when measured with the multimeter in resistance mode, but the neutral will be isolated from the ground bus at the subpanel (if applicable).
  4. Re-identify Permanently: If a wire's color is faded or painted over, strip back the insulation slightly to find clean copper, and re-identify the wire using high-quality vinyl tape (like 3M Super 33+) or adhesive-lined heat shrink tubing. Do not use cheap masking tape or office tape, as the adhesive will dry out and fall off inside a warm junction box within a year.

Frequently Asked Questions

What is the standard color code for wire in a 240V circuit?

In the US, a pure 240V circuit (like a baseboard heater) requires two hot wires and a ground. The standard colors are Black (Phase A), Red (Phase B), and Bare/Green (Ground). No neutral is required. However, for a 120/240V appliance like an electric dryer or range, you need a 4-wire setup: Black (Hot), Red (Hot), White (Neutral), and Bare/Green (Ground). Older homes may still have 3-prong NEMA 10-30 outlets lacking a dedicated ground wire, but modern NEC code strictly requires the 4-wire NEMA 14-30 configuration for new installations.

Can I use a white wire as a hot wire?

Yes, but only under specific conditions outlined in NEC 310.12(C)(2). You can use a white wire as a hot conductor in a switch loop or when pulling individual conductors in a raceway where a colored wire is unavailable. The absolute requirement is that you must permanently re-identify the white wire at every point where it is accessible (both ends) using black or red tape, paint, or heat shrink. If you fail to re-identify it, the next person working on the panel will assume it is a neutral and could receive a lethal shock.

Does the color code for wire apply to low-voltage thermostat cables?

No. The NEC mains color codes do not apply to Class 2 low-voltage control wiring, such as 18/5 or 20/5 thermostat cables. Thermostat wiring follows a different industry convention: Red (24VAC power), White (Heat call), Yellow (Cooling call), Green (Fan call), and Blue (Common/C-wire). Always verify the manufacturer's wiring diagram for HVAC control boards, as some proprietary systems use non-standard color mappings.