Electrical Wiring Colors: Wire Color Code Standards by Country

Understanding electrical wire color codes is essential for safe wiring work. Whether you are working on a home electrical project, troubleshooting an industrial panel, or wiring a circuit in another country, knowing what each wire color means prevents dangerous mistakes and ensures code compliance.

This guide covers wire color standards for the United States (NEC), Canada (CEC), United Kingdom (BS 7671), European Union (IEC 60446), Australia/New Zealand, and India. We also cover low-voltage DC wiring colors for automotive, solar, and electronics applications.

Why Wire Colors Matter

Wire colors serve a critical safety function. They tell electricians, inspectors, and DIYers which conductor carries what function without needing to test every wire with a meter. Connecting a hot wire to a ground terminal -- or mixing up neutrals and hots -- can cause electrocution, fires, or equipment damage.

Color codes are defined by national electrical codes and international standards. While the principles are similar worldwide (hot, neutral, ground), the actual colors vary significantly between countries. If you work on imported equipment or travel for electrical work, knowing these differences is crucial.

United States Wire Color Codes (NEC)

The National Electrical Code (NEC) governs wire colors in the United States. Here are the standard colors for 120/240V residential and commercial wiring:

Single-Phase (120V/240V)

Three-Phase (208V/480V)

277/480V Three-Phase

Important NEC Rules

The NEC mandates colors only for neutral (white or gray) and ground (green or bare). Hot conductors can technically be any other color, but the conventions above are universally followed. Breaking these conventions is a code violation in practice because it creates confusion and safety hazards.

In conduit work with individual THHN conductors, electricians follow these color conventions strictly. In Romex (NM cable), colors are determined by the cable jacket: 14/2 has black (hot) and white (neutral), while 14/3 adds red as a second hot.

Canadian Wire Color Codes (CEC)

Canada follows the Canadian Electrical Code (CEC), which is similar to the NEC but has key differences:

The CEC is nearly identical to the NEC for residential wiring. The main difference appears in 3-phase industrial systems where Canadian practice may vary slightly from US conventions.

United Kingdom Wire Color Codes (BS 7671)

The UK updated its wire colors in 2004 (Amendment 2 to BS 7671) to align with European harmonized colors. Both old and new systems are still found in existing buildings.

Current UK Colors (post-2004)

Three-Phase (Current)

Old UK Colors (pre-2004, still found in buildings)

If you encounter old UK wiring, never assume black is neutral based on US conventions -- in old UK wiring, black IS the neutral, not a hot conductor. Always test with a multimeter.

European Union / IEC Standard (IEC 60446)

The harmonized European colors (IEC 60446) match the current UK system:

These colors are used across the EU, including Germany, France, Italy, Spain, and Scandinavia. The harmonization effort began in the 1990s and is now standard across member states.

Australia and New Zealand Wire Colors (AS/NZS 3000)

Australia and New Zealand follow AS/NZS 3000 (the Wiring Rules):

Three-Phase

Australia transitioned from the old red/black system to harmonized brown/blue colors, but red/black is still common in existing installations.

India Wire Color Codes (IS 732)

India follows IS 732:

Old Indian System

New Indian System (aligning with IEC)

Three-Phase (India)

Low-Voltage DC Wire Colors

DC wiring for automotive, solar, marine, and electronics applications follows different conventions:

Automotive (12V DC)

Solar Panel Systems

Electronics and Hobby Projects

USB Cable Colors

Thermostat Wire Colors

Thermostat wiring uses its own color conventions:

Quick Reference Table

Function USA (NEC) UK/EU (IEC) Australia India (old)
Hot/Live L1 Black Brown Red Red
Hot/Live L2 Red Black White Yellow
Hot/Live L3 Blue Gray Blue Blue
Neutral White Blue Black Black
Ground/Earth Green/bare Green-yellow Green-yellow Green

Safety Guidelines

  1. Always test -- Never rely solely on wire color. Use a multimeter or non-contact voltage tester to verify.
  2. Turn off power -- De-energize circuits before working on them. Lock out the breaker.
  3. Label everything -- When re-wiring or working in conduit, label wires at both ends.
  4. Follow local codes -- Wire color requirements vary by jurisdiction. Check with your local building department.
  5. Old wiring -- Buildings with pre-standard wiring may use non-standard colors. Test every conductor.

Creating Wire Color Reference Diagrams

Use CircuitDiagramMaker to create reference diagrams showing wire color codes for your specific application. The color-coded wire feature lets you assign red for hot, green for ground, blue for neutral, and any custom color for signal wires. Export as PNG or PDF for your reference binder.

CircuitDiagramMaker's AI circuit generator can also create properly color-coded diagrams -- just describe your circuit and mention the wiring standard you need to follow.

Switch Leg and Traveler Wire Colors

In a 3-way or 4-way switch circuit, the wire that carries switched power between switches and the light fixture is often called the switch leg or traveler, and it does not always follow the simple hot/neutral/ground pattern.

Because 3-way and 4-way circuits need extra conductors that a standard 2-wire cable does not provide, the white wire in these boxes is frequently repurposed as a second hot. Never assume a white wire is a neutral inside a switch box without testing it first.

Code and Permit Considerations

The NEC sets the color rules, but permitting and licensing are handled at the state and local level. Most jurisdictions require an electrical permit for new circuits, service upgrades, and most rewiring -- simple like-for-like device swaps (replacing an existing outlet or switch on an unchanged circuit) are often permit-exempt, but this varies by jurisdiction.

A few points worth knowing:

Troubleshooting Wire Color Confusion

Symptom Likely Cause Fix
A black wire in an old house is actually the neutral Pre-standardization wiring, or an imported/old Commonwealth wiring scheme where black was used as neutral Test with a meter before assuming function; relabel with tape once confirmed
White wire tests hot at a switch box White was reused as a switch leg or traveler and never reidentified Verify with a non-contact tester; if hot, mark it with black or red tape per code
Two black wires land in the same box and only one should be a source hot One black wire is a switched leg or traveler, not a supply hot Trace each wire with a tester or continuity check before landing anything on a device
Bare copper and green insulated wire both appear on the same ground bus Different cable types (NM cable vs conduit runs) use different ground conductor styles Both are grounds and can share the same bus or wire nut
An outlet reads hot on both slots Hot and neutral were reversed somewhere upstream De-energize the circuit and correct the reversal at the outlet or panel -- do not just relabel the wires

Testing a Wire's Actual Function Before You Trust the Color

Wire color is a convention, not a guarantee -- especially in older homes, after DIY rewiring, or on imported equipment. Before connecting to or trusting any wire, confirm what it actually does:

  1. Start with a non-contact voltage tester. Hold it near each wire with the circuit energized -- it will beep or light up near a hot conductor and stay silent near a neutral or ground.
  2. Once you know which wires are hot, de-energize the circuit at the breaker before touching anything.
  3. With a multimeter set to AC voltage, measure between the suspected hot and a known neutral or ground to confirm the reading (roughly 120V or 240V, depending on the circuit).
  4. With the circuit de-energized and disconnected from its source, use the continuity/resistance setting to confirm which wires connect to each other at opposite ends -- this is especially useful in switch loops and multi-wire branch circuits.
  5. Label every wire you test, at both ends, so the next person working on the circuit -- including a future version of you -- doesn't have to repeat the process.

Conclusion

Wire color codes are fundamental to electrical safety. While the specific colors vary by country and application, the principle is universal: every conductor has a designated function, and its color communicates that function to anyone who works on the circuit.

Bookmark this guide as a reference, and always verify wire function with a tester before making connections. When in doubt, consult a licensed electrician and your local electrical code.


Create color-coded wiring diagrams with CircuitDiagramMaker -- the free online wiring diagram tool with 400+ symbols and built-in simulation.

Electrical Circuit Diagram — circuit diagram showing component connections+-BatterySwitchR1LEDBasic Circuit
Electrical Circuit Diagram — open the interactive version of this diagram to customise and export it.
Electrical Diagram — circuit diagram showing component connections+-BatterySwitchR1LEDBasic Circuit
Electrical Diagram — open the interactive version of this diagram to customise and export it.
Electrical Diagram Drawing — circuit diagram showing component connections+-BatterySwitchR1LEDBasic Circuit
Electrical Diagram Drawing — open the interactive version of this diagram to customise and export it.

Frequently asked questions

does a 240V circuit need a neutral wire

Not always. A 240V circuit that supplies straight 240V-only loads, like a water heater or many central air condensers, needs just two hots and a ground. A neutral is only required if the equipment also runs 120V components, such as a range or dryer's clock and light, which is why modern dryer and range circuits use four wires instead of three.

what's the difference between a neutral wire and a ground wire if they connect to the same bar in the panel

The neutral carries normal return current whenever the circuit is operating and is bonded to ground at only one point, the main panel. The ground carries no current under normal conditions and only conducts during a fault, giving stray current a safe path back to trip the breaker. Bonding them together anywhere except that one main point creates a shock hazard.

what do the wire colors mean on an LED strip light

On single-color LED strips, red is typically the positive lead and black (or sometimes white) is the negative return. On RGB strips, red usually carries the common positive voltage, while the remaining wires, often black, green, and blue, each control one color channel rather than indicating polarity the way red and black do on other low-voltage wiring.

why doesn't a lamp cord or extension cord use colored wires to show which side is hot

Lamp and zip cords (SPT-1/2) often use two conductors of the same color, so instead of color they mark polarity with a smooth-insulation side for neutral and a ribbed or printed-line side for hot. This lets you wire a polarized plug correctly even though both conductors look identical otherwise.

can a green or bare copper wire ever be used as a hot wire

No. The NEC reserves green and bare copper exclusively for equipment grounding conductors. They should never be intentionally connected as a hot or neutral conductor, even temporarily, because it defeats the safety function of the grounding system and creates a serious shock hazard for anyone who later assumes green means ground.

can I reidentify a wire's function by taping over its factory color

The NEC allows reidentifying white or gray conductors as hot with tape, paint, or a marker at each visible point, which is common in switch loops. It does not permit using tape to turn a hot-colored conductor into a ground or neutral substitute -- ground and neutral functions must use conductors that are actually sized and rated for that role.

Interactive diagrams for this guide

Related guides