Electrical Wire Color Code

Standard Wire Colors for Residential Wiring

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 ColorFunctionSystem VoltageNotes
BlackHot (ungrounded) Line 1120V / 240VPrimary hot for most circuits
RedHot (ungrounded) Line 2120V / 240VSecond hot in 240V, alternate hot in 120V
BlueHot (ungrounded) Phase 3120/208V 3-phaseCommercial 3-phase only
WhiteNeutral (grounded)120V / 240VMust not be re-identified as hot in cable smaller than #4
GrayNeutral (grounded)120V / 240V / 277VAlternative to white
GreenEquipment GroundAllNever used as current-carrying conductor
Bare CopperEquipment GroundAllMost common ground in NM cable
OrangeHigh-leg (208V)120/240V 3-phase deltaMarking required, must be orange (NEC 110.15)

Key NEC Rules for Wire Identification

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.