In US HVAC and Class 2 control circuits, 24VDC positive is Red and negative/common is Blue or White. In IEC industrial machine controls, positive is Brown and negative is Blue. Marine (ABYC) systems use Red for positive and Yellow or Black for negative. Because 24VDC systems suffer severe voltage drop over distance, selecting the correct color code is only half the battle; you must also size the wire gauge to prevent contactor chatter or microcontroller brownouts.
The Master 24VDC Wire Color Code Reference Table
Use this table to identify conductors based on the governing standard of your installation. Do not mix these standards within a single control panel.
| Function / Polarity | US NEC / HVAC (Class 2) | IEC 60204-1 (Industrial) | Marine / ABYC |
|---|---|---|---|
| DC Positive (+24V) | Red | Brown | Red |
| DC Negative / Common (0V) | Blue or White | Blue | Yellow or Black |
| Protective Earth (PE / Ground) | Green or Green/Yellow | Green/Yellow Stripe | Green |
| Control / Signal / Switched | Yellow, Orange, Green | Black, Grey | Any color except Red/Green |
| AC Hot (if mixed in panel) | Black (120V) / Red (240V) | Brown (L1), Black (L2) | Black |
Regional Standards: Which Code Dictates Your Panel?
Your physical location and the application type determine which standard the local Authority Having Jurisdiction (AHJ) will enforce.
- US NEC (NFPA 70 Article 725 & NFPA 79): Governs Class 2 remote-control circuits (like thermostats) and industrial machinery in North America. NFPA 79 explicitly adopts the IEC color codes for DC control circuits inside industrial machine panels (Brown/Blue), while field wiring for HVAC typically follows the legacy US thermostat colors (Red/White/Blue). You can verify specific machinery requirements via the NFPA 79 standard documentation.
- IEC 60446 / IEC 60204-1: The dominant standard in Europe, the UK, and most international industrial exports. It strictly mandates Brown for DC+ and Blue for DC-. If you are building a control panel for export or using imported PLCs (like Siemens S7), you must use IEC colors.
- Marine (ABYC E-11): The American Boat & Yacht Council standard governs 12V/24VDC marine environments. It prefers Yellow for DC negative to prevent fatal confusion with Black, which is reserved for AC Hot in marine shore-power systems. Consult the ABYC standards overview for marine compliance.
The "Rows People Get Wrong" Field Notes
When troubleshooting or retrofitting, these specific color mappings cause the most blown fuses and fried boards:
1. The "White" Wire in HVAC vs. AC Mains
In 120V AC branch circuits, White is the grounded neutral. In 24V HVAC thermostat wiring, White is almost never the common/negative. White is traditionally the "W" terminal (Heat call signal). The actual 24V common is Blue ("C" terminal). Applying 24VAC/DC from the Red wire directly to the White wire without a load will short the transformer or blow the 3A automotive-style fuse on the control board.
2. Black Wire: Signal vs. Hot vs. Negative
In US AC wiring, Black is 120V Hot. In IEC DC wiring, Black is used for switched signals or control outputs, while Blue is the DC negative. If you assume an IEC Black wire is a negative return and bond it to your DC bus, you will dead-short the PLC output transistor when it fires.
3. 24VAC vs. 24VDC Polarity
HVAC thermostats use 24VAC. Polarity does not matter for AC, which is why older installers used any available wire color for the common. Modern smart thermostats (Nest, Ecobee) and DC-powered control boards require strict DC polarity. Always verify with a multimeter if you are adapting an old 24VAC transformer tap to a 24VDC relay coil.
Decision Path: Selecting Your Wire and Color Scheme
Use this decision tree to select the exact wire type, gauge, and color scheme for your specific 24VDC application. At 24VDC, a mere 2.4V drop (10%) will cause relays to chatter and ESP32 microcontrollers to brownout. Always size for voltage drop, not just ampacity.
| Application Scenario | Governing Standard | Required Colors | Concrete Pick (Buy This) |
|---|---|---|---|
| HVAC Thermostat / Smart Home (Under 5A, in-wall routing) |
NEC Class 2 (UL 1581) | Red (+), Blue (C), Green, Yellow, White | Southwire 18/5 Shielded Thermostat Cable (Solid copper, CMP rated) |
| Industrial Control Panel (PLC I/O, 24VDC relays, DIN rail) |
IEC 60204-1 / NFPA 79 | Brown (+), Blue (-), Black (Signal) | Alpha Wire 16 AWG MTW (Stranded, Brown/Blue/Black spools, 600V rated) |
| Marine / Off-Grid Solar (High current 24VDC bus, damp environment) |
ABYC E-11 | Red (+), Yellow (-) | Ancor Marine 10 AWG Tinned (Stranded, Type 3 stranding for vibration) |
| DIY Arduino / ESP32 Prototyping (Bench testing, low current sensors) |
N/A (Bench standard) | Red (VIN), Black (GND) | Belden 8760 (18 AWG 2-conductor, Red/Black, foil shielded) |
Safe Interpretation When Markings Are Faded or Missing
In older industrial panels or salvaged equipment, UV exposure, heat, and oil can bleach wire insulation, turning Red into pale pink, or Blue into a muddy grey. Never guess the polarity of an unmarked or faded 24VDC wire based on visual inspection alone.
- De-energize and Isolate: Turn off the main AC disconnect feeding the 24VDC power supply. Lock out and tag out (LOTO) the breaker.
- Continuity Check to Ground: Set your DMM to continuity (or resistance). Probe the unknown wire against the known PE (Ground) bus. If it reads < 1 ohm, it is a ground bond. If it reads open (OL), proceed to step 3.
- Trace to the Power Supply: Visually trace the wire back to the DC power supply terminals (e.g., a Mean Well NDR-240-24). The physical termination point on the +V or -V terminal is the only reliable indicator of its intended function.
- The "Fused Jumper" Live Test: If the wire is severed and cannot be traced, you must energize the system to test. Connect a fused jumper wire (using a 2A inline automotive fuse) from the known 24VDC+ terminal to the unknown wire. If the fuse blows instantly, the wire is tied to DC- or Ground. If the fuse holds and the downstream relay/sensor powers up, you have identified the positive feed.
By strictly adhering to the correct regional color code and verifying faded wires with a meter rather than assumption, you ensure your 24VDC control systems remain safe, serviceable, and compliant with local electrical codes.






