Navy color code: #001F3F
A slightly softened navy popularised by modern CSS frameworks, warmer and less electric than pure #000080.
Navy · rgb(0, 31, 63)
Every format for Navy
- HEX
- #001F3F
- RGB
- rgb(0, 31, 63)
- HSL
- hsl(210, 100%, 12%)
- HSV
- 210°, 100%, 25%
- CMYK
- 100%, 51%, 0%, 75%
- Lightness
- 12% · dark
Hue sits at 210°, which makes Navy a slightly cool blue navy, with 100% saturation. In the Classic Navy family it reads as a dark option.
Text contrast on Navy
Contrast ratios are calculated using the WCAG 2.1 relative luminance formula. Normal body text needs 4.5:1 and large text needs 3:1 to pass AA.
White text on Navy
The quick brown fox jumps over the lazy dog.
16.56:1 — AAA for normal textBlack text on Navy
The quick brown fox jumps over the lazy dog.
1.27:1 — below AA, decorative use onlyNavy text on white
The quick brown fox jumps over the lazy dog.
16.56:1 — AAA for normal textAccessibility notes
- Pair Navy with white text for the strongest reading experience: that combination gives 16.56:1.
- Used as a text colour on white, it clears the 3:1 bar for large headings.
- Never rely on Navy alone to communicate state. Add an icon, label or underline so the meaning survives for colour-blind users and in greyscale printing.
- When placing text over a photograph tinted with Navy, add a solid overlay first. Contrast measured against a flat colour does not hold over varying imagery.
Using Navy in CSS and HTML
CSS example
:root {
--navy: #001F3F;
}
.panel {
background-color: var(--navy);
color: #FFFFFF;
border: 1px solid #001F3F;
}HTML example
<div style="background-color: #001F3F; color: #FFFFFF; padding: 1rem;">
Navy #001F3F
</div>Common uses
- Page and section backgrounds in dark interfaces, where it holds white text cleanly.
- Classic Navy palettes for brand systems that need a dependable cool anchor.
- Print work where a deep blue is preferred to black, using the CMYK build 100%, 51%, 0%, 75%.
- Data visualisation, as one step in a lightness-based navy scale.
Design recommendations
- Build lighter and darker variants by changing only the lightness in
hsl(210, 100%, 12%). Keeping hue fixed is what makes a scale look intentional. - Give Navy at least one warm counterweight. A cool palette with no warm accent tends to read as cold rather than calm.
- Saturation is high here, so use it in measured amounts. Large flat areas of a saturated navy can feel heavy on screen.
Complementary and matching colors
Each of these is derived from the hue, saturation and lightness of Navy. Click a swatch to copy it.
Similar navy shades
Continue exploring
FAQs about Navy
What is the Navy color code?
The Navy color code is #001F3F in HEX, rgb(0, 31, 63) in RGB and hsl(210, 100%, 12%) in HSL.
What is the RGB value of Navy?
Navy is rgb(0, 31, 63), meaning 0 units of red, 31 of green and 63 of blue on the 0 to 255 scale.
What is the CMYK value of Navy?
In CMYK, Navy converts to approximately 100%, 51%, 0%, 75%. Printed output will look slightly less saturated than the screen preview because CMYK covers a narrower gamut.
Does white text work on Navy?
White text on Navy gives a contrast ratio of 16.56:1, which is AAA for normal text.
Does black text work on Navy?
Black text on Navy gives a contrast ratio of 1.27:1, which is below AA, decorative use only.
Which colors go with Navy?
Its direct complement is #B35900, and the warm accent #AA8518 works well for calls to action. For a quieter scheme, pair it with the analogous blues listed above.
Is Navy a light or dark navy?
At 12% lightness, Navy is classed as a dark navy in this collection.