Skip to content

Navy

Navy is a dark, vivid color from the blue family. Hex code #000080.

Navy#000080

Color codes

  • CSS namenavy
  • HEX#000080
  • RGBrgb(0 0 128)
  • HSLhsl(240 100% 25%)
  • HSB / HSVhsb(240, 100%, 50%)
  • OKLCHoklch(27.1% 0.188 264.1)
  • CMYKcmyk(100%, 100%, 0%, 50%)

White text

16.00:1 · passes WCAG AAA

Black text

1.31:1 · fails WCAG

Shades

50#EBF2FF
100#C1D5FC
200#98B8F9
300#6C99FA
400#4679F0
500#2D5DD2
600#1541B4
700#022296
800#000370

Complementary

#000080
#332402

Analogous

#000080
#042B3D
#2E0961

Triadic

#000080
#500007
#003103

About this color

Navy in CSS and design

Navy is a dark, vivid color from the blue family. Navy is one of the 16 basic color keywords, which go back to HTML 4, long before CSS had 148 named colors.

Use it in CSS by name or by any of its codes; these all give the same color:

color: navy;
color: #000080;
color: rgb(0 0 128);
color: hsl(240 100% 25%);

For text on navy, white reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for navy?

#000080. In CSS you can also use the keyword navy, which works in every browser.

What is navy in RGB and HSL?

In RGB it is rgb(0 0 128), in HSL hsl(240 100% 25%). For print, cmyk(100%, 100%, 0%, 50%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on navy?

White text works better: it has a contrast ratio of 16.00:1 and passes WCAG AAA. Black text reaches 1.31:1.

Which colors go with navy?

Its complementary color is #332402, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #042B3D and #2E0961. The palette generator builds more combinations.