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.

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.