The National Electrical Code (NEC) defines a standardized color code system for electrical wiring to ensure safety and consistency across installations. In a standard 120-volt branch circuit, the hot (ungrounded) conductor is black or red, the neutral (grounded) conductor is white or gray, and the equipment grounding conductor is green, green with a yellow stripe, or bare copper. When a NM-B (Romex) cable enters a junction box, the electrician identifies each conductor by its factory-applied insulation color. In 240-volt circuits (common for electric dryers, ranges, water heaters, and EV chargers), two hot conductors are used — typically black and red — with no neutral in some cases (straight 240V loads). A 120/240-volt circuit (such as for a range or dryer that needs both voltages) uses black and red for the two hots, white for the neutral, and green or bare for ground. Three-phase commercial wiring uses black, red, and blue for the three hots (120/208V system) or brown, orange, yellow (277/480V system). Switch legs (the wire returning from a switch to a light fixture) should be a hot color — black or red — but can be a re-identified white wire if the white wire in a cable assembly is marked with black tape or a permanent marker at both ends to indicate it is being used as an ungrounded conductor.
| Wire Color | Function | System Voltage | Notes |
|---|---|---|---|
| Black | Hot (ungrounded) Line 1 | 120V / 240V | Primary hot for most circuits |
| Red | Hot (ungrounded) Line 2 | 120V / 240V | Second hot in 240V, alternate hot in 120V |
| Blue | Hot (ungrounded) Phase 3 | 120/208V 3-phase | Commercial 3-phase only |
| White | Neutral (grounded) | 120V / 240V | Must not be re-identified as hot in cable smaller than #4 |
| Gray | Neutral (grounded) | 120V / 240V / 277V | Alternative to white |
| Green | Equipment Ground | All | Never used as current-carrying conductor |
| Bare Copper | Equipment Ground | All | Most common ground in NM cable |
| Orange | High-leg (208V) | 120/240V 3-phase delta | Marking required, must be orange (NEC 110.15) |
Several NEC rules govern wire identification beyond simple color. White conductors in cable assemblies can be re-identified as hot only when part of a cable (like Romex) used as a switch loop AND the conductor used is permanently re-identified by painting or other effective means at its terminations and at each location where the conductor is visible (NEC 200.7(C)(1)). However, 2011 NEC and later require a neutral in all switch boxes, effectively eliminating the traditional two-wire switch loop. In multi-wire branch circuits, the ungrounded conductors must be identified by phase and system at all termination points. The equipment grounding conductor in NM cable smaller than #6 must be bare or green. For #6 and larger, it may be bare, green, or green with yellow stripe. Never use green or bare wires as current-carrying conductors under any circumstances.