DC wiring lacks the universal, legally enforced standardization of AC mains, making context and regional standards critical for safety and troubleshooting. Below is the exact wire color mapping for DC systems across major global standards, followed by field notes on how to handle legacy and faded installations.
The Master DC Color Code Reference Table
This table maps the standard DC conductor functions to the three most common wiring environments you will encounter on the bench or in the field. Always verify which standard your local Authority Having Jurisdiction (AHJ) or equipment manufacturer enforces before terminating connections.
| Conductor Function | US Practice (NEC / NFPA 79) | International (IEC 60445 / EN) | Automotive / Marine (12V/24V) |
|---|---|---|---|
| Positive (Ungrounded) | Red (or any color except W/Gy/Gr) | Brown | Red |
| Negative (Grounded Return) | White or Grey | Blue | Black |
| Earth / Chassis Ground | Green, Green/Yellow, or Bare | Green/Yellow | Green or Green/Yellow |
| 2-Wire Ungrounded System | Red & Black | Brown & Blue | Red & Black |
| Center-Tap (3-Wire DC) | White (Neutral/Midpoint) | Blue (with tracer/stripe) | N/A (Rare in auto) |
Regional Variants: NEC vs. IEC vs. Legacy Standards
Unlike AC wiring, where the NEC strictly dictates black/red/blue for hots and white/grey for neutrals, DC color codes in the US are governed by a mix of the National Electrical Code (NEC) and industrial standards like NFPA 79 (Electrical Standard for Industrial Machinery).
United States (NEC & NFPA 79)
The NEC (specifically Articles 210.5 and 215.7) mandates that if a DC system is grounded, the grounded conductor (the negative return, in most 12V/24V/48V setups) must be white or grey. However, the NEC does not strictly mandate the color of the ungrounded (positive) conductor, leaving it to "any color except white, grey, or green." In practice, US industrial control panels follow NFPA 79, which standardizes red for DC positive and black for DC negative in ungrounded systems, or white for grounded returns.
International (IEC 60445)
The International Electrotechnical Commission is far more rigid. Under IEC 60445, DC positive is strictly brown, and DC negative is strictly blue. If you are importing machinery from Europe or working on a solar inverter designed for the EU market, you will see brown and blue DC pigtails. Never assume blue is an AC neutral when working inside a dual-purpose inverter/charger chassis.
Automotive and Marine (SAE / ABYC)
In 12V and 24V vehicle and boat systems, the SAE (Society of Automotive Engineers) and ABYC (American Boat and Yacht Council) standards dominate. Here, red is always positive and black is always negative. This directly conflicts with IEC DC standards and US AC standards, which is why automotive wire should never be used in residential or industrial AC/DC hybrid panels.
The "Rows People Get Wrong" Field Notes
When you are tracing wires in a messy solar combiner box or an old industrial control panel, the chart above is only as good as the original installer's compliance. Here are the most common DC color code failures and how to handle them.
1. The "Black is Always Negative" Trap
In automotive contexts, black is negative. But in US residential AC wiring, black is a 120V hot leg. If a DIYer wires a 48V DC battery bank using standard NM-B (Romex) cable, they might use the black wire for DC positive and the white wire for DC negative. If the next person assumes the black wire is an AC hot and the white is an AC neutral, they will connect it to an AC breaker, instantly destroying the DC equipment and creating an arc flash hazard. Rule: Never use standard AC NM-B cable for DC circuits; use THHN in conduit or specific DC-rated cable with proper color coding.
2. Confusing Earth Ground with Negative Return
Beginners often use green wire for the DC negative return because they equate "negative" with "ground." This is a critical error. The negative return carries the full load current back to the source. The earth ground (green/green-yellow) is a non-current-carrying safety path meant only to clear faults. They should only be bonded together at one single point (usually the main busbar or inverter chassis). Using green wire for a negative return means your safety ground path is now carrying continuous operational current, which can energize equipment chassis if a connection fails.
In solar PV arrays and outdoor battery enclosures, UV exposure and heat routinely fade red THHN wire into a dusty pink, orange, or even pale yellow. Never trust faded wire colors. If markings are ambiguous, treat the conductor as energized. Use a True-RMS multimeter (like a Fluke 117) to measure voltage to a known earth ground. If you read nominal system voltage (e.g., ~48V on a 12S LiFePO4 bank), it is your positive conductor, regardless of what color the jacket currently appears to be.
DC Color Code FAQ
What is the standard DC color code for positive and negative wires?
There is no single global standard. In the US (NEC/NFPA 79), DC positive is typically red, and a grounded DC negative return is white or grey. In international IEC systems, DC positive is brown and negative is blue. In automotive and marine 12V/24V applications, positive is red and negative is black. Always check the equipment manufacturer's wiring diagram, as imported hardware often uses IEC colors internally regardless of the country of installation.
Is black or red positive in a 12V DC system?
In almost all 12V DC systems (automotive, marine, RV, and off-grid 12V battery banks), red is positive and black is negative. However, if you are wiring a 12V DC control circuit inside an industrial manufacturing panel governed by IEC standards, the positive wire will be brown, and the negative will be blue. Always verify the governing standard of the specific enclosure you are working inside.
How do I identify DC wires when the color markings are faded or missing?
Do not guess. Follow this verification sequence:
- De-energize if possible: Disconnect the battery or solar array if the system allows it.
- Continuity Test: With the system off, use your multimeter's continuity setting. Probe the unknown wire and the known chassis ground. If it beeps (reads < 1 ohm), it is your earth ground.
- Voltage Test: If the system must remain live, set your meter to DC Volts. Place the black probe on a known earth ground (like the metal chassis or ground busbar). Touch the red probe to the unknown wire. A positive voltage reading equal to your system nominal (e.g., +12.6V, +24.2V, or +51.2V) identifies the positive conductor. A reading near 0V indicates the negative return.
Does the NEC require specific colors for solar PV DC wiring?
NEC Article 690 (Solar Photovoltaic Systems) does not mandate specific insulation colors for ungrounded PV source circuit conductors (the wires running from the panels to the inverter). However, it does require that they be permanently marked to distinguish them from other systems. In practice, most professional solar installers use black for DC positive and red for DC negative on the roof to minimize UV degradation (black insulation resists UV better than red), but they must label both ends with "PV SOURCE" and "+" or "-" indicators. The grounded conductor, if present, must still be white or grey per NEC 210.5.






