Navy blue hex code
#000080
The hex code for navy blue is #000080, which is RGB 0, 0, 128. It is the CSS color navy and one of the 16 original HTML colors: pure blue at half strength, with no red or green.
Click a value to copy it. Move the slider to try a lighter or darker version; the code samples further down follow it.
Runs in your browser. Nothing you type is uploaded.
Navy blue color codes
These are all the same navy blue, written for different tools. Web and app design use HEX, RGB and HSL, print uses CMYK, and CIE Lab and LCH describe the color the way the eye sees it. Click any code in the tool above to copy it.
| Format | Value |
|---|---|
| HEX | #000080 |
| RGB | rgb(0, 0, 128) |
| HSL | hsl(240, 100%, 25%) |
| HSV | hsv(240, 100%, 50%) |
| CMYK | 100, 100, 0, 50 |
| CIE Lab | 13.0, 47.5, -64.7 |
| LCH | 13.0, 80.3, 306.3 |
| Decimal | 128 |
| Binary | 00000000 00000000 10000000 |
| CSS color name | navy |

To turn any other code into these values, paste it into the hex to RGB converter.
Which navy blue hex code should you use?
Different color sites give different codes for navy blue. These are the four you are most likely to run into, where each one comes from and how they differ.
navy, used by Wikipedia, Figma, Canva and HTMLColorCodesPure blue at half brightness.midnightblueSlightly grayer and softer.darkblueA little brighter than navy.Color sites agree on #000080, so this is one of the few named colors with a clear answer. The confusion comes from CSS, which has three dark blues: navy, darkblue and midnightblue. Navy is the darkest of the pure blues, and midnight blue has a little red and green that make it look less saturated.
The US Navy's own design guide uses #003B4F for navy blue, a blue-green much closer to dark teal. It shows how far a brand color can drift from the name.
Measured as CIE76 color distance from #000080, #191970 is 22.1, #00008B is 5.2 and #003B4F is 74.5. A distance under about 2.3 is hard to see, so all of these are visibly different from the main code. Codes checked on November 10, 2026.
Shades of navy blue
Dark blues with established names. The ones marked CSS work as color names in any stylesheet.
navydarkbluemidnightbluemediumbluedarkslateblueroyalblueLight navy and dark navy
Each step mixes navy blue with 10 percent more white (tints) or black (shades), so the hue stays the same. Click a step to copy it.
Colors that go with navy blue
Navy is dark enough to act like a neutral, so it works with warm and cool colors alike. Warm, light colors make it look most striking.
Matches from the color wheel
These come from rotating the hue of #000080 (240 degrees) around the color wheel while keeping its saturation and lightness. They fit together in theory, but check them in your design: a wheel match is a starting point, not a rule.
Navy blue color palettes
Three palettes built around navy blue, each with a light color for backgrounds and a dark one for text. Click a palette to copy all five codes.
What colors make navy blue?
On a screen
On #000080, red and green are zero and blue is at 128, which is 50 percent. That is pure blue at half brightness. Raise blue and it becomes medium blue and then #0000FF. Add equal amounts of red and green and it softens toward midnight blue #191970.
With paint
Mix blue with a small amount of black. A drop of orange, the opposite of blue, also darkens it while keeping it richer than black does. Start with ultramarine for a warmer navy or phthalo blue for a cooler one.
Is text readable on navy blue?
WCAG asks for a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text, which means 24px, or 19px bold. White text on #000080 is the readable choice.
| Pairing | Contrast | Normal text | Large text |
|---|---|---|---|
| White text on navy blue | 16.01:1 | Passes | Passes |
| Black text on navy blue | 1.31:1 | Fails | Fails |
How navy blue looks with color blindness
Navy stays dark blue with red-green color blindness and shifts toward a dark blue-green with tritanopia, #003248. These are approximate simulations using the Machado matrices for full color blindness. Color blindness affects about 1 in 12 men and 1 in 200 women, mostly the red-green types, so do not use navy blue as the only signal for something like an error or a selected state.
Navy blue in binary
A hex code is three bytes, one each for red, green and blue. Each pair of hex digits is one byte, and each byte is 8 bits. This is how #000080 is stored:
| Channel | Hex | Decimal | Binary | Bits that are on |
|---|---|---|---|---|
| Red | 00 | 0 | 00000000 | 0 |
| Green | 00 | 0 | 00000000 | 0 |
| Blue | 80 | 128 | 10000000 | 128 |
Joined together that is 000000000000000010000000, a 24-bit number equal to 128 in decimal. The hex to binary converter does the same for any hex value.
Navy blue in CSS and code
Copy the version for your stack. The tool above updates these if you change the lightness.
/* CSS */
:root { --navy-blue: #000080; }
.button { background: var(--navy-blue); color: #FFFFFF; }
<!-- Tailwind -->
<button class="bg-[#000080] text-[#FFFFFF]">Button</button>
// SwiftUI
Color(red: 0.000, green: 0.000, blue: 0.502)
<!-- Android colors.xml -->
<color name="navy_blue">#000080</color>
# Python
navy_blue = (0, 0, 128)
Navy blue color meaning
Navy blue suggests authority, trust and seriousness, from naval and police uniforms to business suits. Banks, law firms and tech companies use it often, and it is a softer alternative to black for text and dark backgrounds.
Where the name comes from
Navy blue is named after the dark blue worn by officers of the British Royal Navy, whose first uniform regulations date from 1748. It was first called marine blue. On the web, navy is one of the 16 color names in the original HTML specification, and the CSS Color specification still defines it as #000080.
Frequently asked questions
What is the hex code for navy blue?
The navy blue hex code is #000080, RGB 0, 0, 128. In CSS the color name is navy, not navyblue.
What is the RGB code for navy blue?
RGB 0, 0, 128. Only the blue channel is on, at half strength.
What is the difference between navy and dark blue in CSS?
navy is #000080 and darkblue is #00008B. Dark blue is slightly brighter, and the difference is hard to see.
What colors make navy blue?
Blue and a little black, or blue with a small amount of orange. On a screen, it is the blue channel alone at about half strength.
What is the CMYK code for navy blue?
For #000080 it is 100, 100, 0, 50. Printers often adjust this, so check with a proof.
What color text goes on navy blue?
White. White on #000080 has a contrast ratio of 16.01 to 1. Black on it is 1.31 to 1 and cannot be read.