Navy Hex Code #000080
Navy is a very dark, strong blue with the hex code #000080. In RGB it is 0, 0, 128, and in HSL it is 240°, 100%, 25%. It is one of the 148 named colors in CSS, so you can write “navy” instead of the hex code.
- HEX
- #000080
- RGB
- rgb(0, 0, 128)
- HSL
- hsl(240, 100%, 25%)
- HSV
- hsv(240°, 100%, 50%)
- CMYK
- cmyk(100%, 100%, 0%, 50%)
- CSS name
- navy
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Navy
On a white background Navy has a contrast ratio of 16.01:1 (AAA), and on black 1.31:1 (Fail). White text is the better choice on top of it.
It sits on the cool side of the color wheel, a range that tends to feel calm and appears to recede.
Blue is the most common color in interfaces. It signals trust and calm, which is why banks, software and healthcare brands favour it.
Good to know: Navy (#000080) is blue at half intensity: the blue channel is 128, and red and green are zero.
Shades and tints of Navy
Tints mix Navy with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Navy
These schemes are calculated from Navy on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Navy is #805300, close to the named color Saddle Brown.
Navy contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Navy scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 16.01:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
| Black (#000000) | 1.31:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
Navy and color blindness
These are approximate previews of how Navy can look with the main types of color vision deficiency.
Navy changes noticeably.
Navy shifts slightly.
Navy changes noticeably.
Navy changes noticeably.
Gradients with Navy
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Navy to a lighter tint
background: linear-gradient(135deg, #000080 0%, #9999cc 100%); Navy to its analogous neighbour
background: linear-gradient(135deg, #000080 0%, #400080 100%); Navy to its complement
background: linear-gradient(135deg, #000080 0%, #808000 100%); Colors similar to Navy
How each close match differs from Navy.
Use Navy in code
.element {
color: #000080;
background-color: #000080;
border-color: navy; /* navy is a valid CSS color name */
} :root {
--color-navy: #000080;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#000080] text-[#000080] border-[#000080]"></div>
/* Tailwind v4 theme color */
@theme {
--color-navy: #000080;
} Navy questions
What is the hex code for Navy?
The hex code for Navy is #000080. In RGB that is rgb(0, 0, 128), and in HSL it is hsl(240, 100%, 25%).
What is the complementary color of Navy?
On the RGB (screen) color wheel, the complement of Navy is #808000, which is close to Olive. On the artist’s RYB wheel it is #805300, close to Saddle Brown.
Should I use white or black text on Navy?
White text. It has a contrast ratio of 16.01:1 against Navy, which is WCAG AAA. The other option scores 1.31:1.
Is Navy accessible as a text color on white?
Yes. Navy on white scores 16.01:1, which passes WCAG AA for normal text (4.5:1) and AAA (7:1).
What are darker and lighter shades of Navy?
Mixing Navy with black gives #000066, #00004D, #000033, #00001A (20% to 80% black). Mixing it with white gives #333399, #6666B3, #9999CC, #CCCCE6 (20% to 80% white).