Navy color code: #001F3F

A slightly softened navy popularised by modern CSS frameworks, warmer and less electric than pure #000080.

Classic Navy
#001F3F

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 text

Black text on Navy

The quick brown fox jumps over the lazy dog.

1.27:1 — below AA, decorative use only

Navy text on white

The quick brown fox jumps over the lazy dog.

16.56:1 — AAA for normal text

Accessibility 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.

Complementary #B35900
Split complement #B30000
Warm accent #AA8518
Analogous cool #00ADAD
Analogous warm #0000AD
Triadic #99004D

Similar navy shades

Classic Navy

Classic Navy

HEX
#0A1F44
RGB
10, 31, 68
HSL
218, 74%, 15%
CMYK
85%, 54%, 0%, 73%

Anchor Navy

Classic Navy

HEX
#0E1F3C
RGB
14, 31, 60
HSL
218, 62%, 15%
CMYK
77%, 48%, 0%, 76%

Deep Navy

Classic Navy

HEX
#14213D
RGB
20, 33, 61
HSL
221, 51%, 16%
CMYK
67%, 46%, 0%, 76%

True Navy

Classic Navy

HEX
#12264E
RGB
18, 38, 78
HSL
220, 63%, 19%
CMYK
77%, 51%, 0%, 69%

Uniform Navy

Classic Navy

HEX
#1F2A44
RGB
31, 42, 68
HSL
222, 37%, 19%
CMYK
54%, 38%, 0%, 73%

Traditional Navy

Classic Navy

HEX
#1B2A49
RGB
27, 42, 73
HSL
220, 46%, 20%
CMYK
63%, 42%, 0%, 71%

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.