Home / Colors / Navy blue hex code

Navy blue hex code

A very dark blue named after naval uniforms.

#000080 Navy Blue
HEX#000080
RGBrgb(0, 0, 128)
HSLhsl(240, 100%, 25%)
HSVhsv(240, 100%, 50%)
CMYKcmyk(100%, 100%, 0%, 50%)
Advertisement

About navy blue

A very dark blue named after naval uniforms. This is the CSS navy. Its hex code is #000080, which is rgb(0, 0, 128): 0 red, 0 green and 128 blue on a scale of 0 to 255.

Navy blue is a cool color.

Navy blue tints and shades

Lighter tints (mixed with white) and darker shades (mixed with black) of navy blue. Click any of them to copy its hex code.

Colors that go with navy blue

Complementary

The opposite color on the color wheel, for strong contrast.

Analogous

Neighbors on the color wheel, for a calm, matching look.

Triadic

Three colors evenly spaced around the wheel, for a balanced, lively palette.

Split complementary

The two colors either side of the complement: contrast without clashing.

Text on navy blue

White text

16.00:1 · Passes AAA for all text

Black text

1.31:1 · Fails for text

For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). White text is the better choice on navy blue. Test other combinations with the contrast checker.

Using navy blue in CSS

.element {
  color: #000080;
  background-color: rgb(0 0 128);
  border-color: hsl(240 100% 25%);
}
Advertisement

Frequently asked questions

What is the hex code for navy blue?

Navy blue is #000080. In RGB it's rgb(0, 0, 128), and in HSL it's hsl(240, 100%, 25%).

What colors go with navy blue?

Its complementary color is #808000, which gives strong contrast. For a softer look, use analogous colors #004080 and #400080. Navy blue also pairs well with white.

Is navy blue warm or cool?

Navy blue is a cool color.

Should I use white or black text on navy blue?

Use white text. Its contrast ratio on navy blue is 16.00:1, versus 1.31:1 for black.

Similar colors

See all popular colors · All HTML color names · Open navy blue in the color picker

Advertisement