Skip to content
Hex Color Picker

Navy Color

Navy is a very dark blue. Its hex code is #000080, which is rgb(0, 0, 128) in RGB, hsl(240, 100%, 25%) in HSL and cmyk(100%, 100%, 0%, 50%) in CMYK. It is a standard named color in CSS, so you can write it as navy in a stylesheet.

#000080exactly navy

This is the CSS color navy #000080

Use 3 or 6 digits, for example #1E90FF or 19F

For example rgb(30, 144, 255) or 30 144 255

For example hsl(210, 100%, 56%)

For example cmyk(88%, 44%, 0%, 0%)

Recent colors

Colors you pick appear here. They stay on this device.

By the Hex Color Picker Team. Updated

Navy color codes

  • Hex: #000080
  • RGB: rgb(0, 0, 128)
  • HSL: hsl(240, 100%, 25%)
  • CMYK: cmyk(100%, 100%, 0%, 50%) (standard formula, not a print profile)
  • CSS name: navy

About the color navy

Navy is pure blue at half strength with no red or green. It is the CSS color for authority and calm, and next to lighter colors it reads as nearly black.

Where navy works

  • Corporate, finance and legal brands.
  • Text on light backgrounds, where it has very high contrast and feels softer than black.
  • Navigation bars and footers with white or pale text on top.

Colors that go with navy

These named colors pair well with navy. Click one to see its page where it exists.

The complementary color of navy, directly opposite it on the color wheel, is #808000, closest to olive. The analogous neighbors are #004080 and #400080, and the triadic partners are #800000 and #008000. The color palette generator builds a full scheme from any of them.

Named colors nearest to navy are darkblue, midnightblue, and mediumblue.

Shades and tints of navy

Keeping the hue and saturation of navy and stepping the lightness from light to dark gives this scale. Use the lighter values for backgrounds and the darker ones for text and borders.

  • #E5E5FF
  • #ACACFF
  • #7373FF
  • #3939FF
  • #0000FF
  • #0000C6
  • #00008C
  • #000053
  • #000019

Contrast and accessibility

White text on navy has a contrast ratio of 16.0:1, and black text has 1.3:1. The WCAG AA guideline asks for at least 4.5:1 for body text and 3:1 for large text. White text passes on navy.

Navy almost vanishes on black. It needs a light surround.

Common questions

What is the hex code for navy?

The hex code for navy is #000080. In RGB it is rgb(0, 0, 128) and in HSL it is hsl(240, 100%, 25%).

How does navy differ from darkblue and midnightblue?

Darkblue is slightly brighter than navy. Midnightblue is darker and a little more muted. Navy is the cleanest of the three, a plain dark blue with nothing else mixed in.

Is white text readable on navy?

Yes. White text on navy has a contrast ratio of 16.0:1, which meets the 4.5:1 WCAG AA guideline for body text.

More named colors

More color tools