Navy (Navy blue)
Navy is a dark, vivid color from the blue family. Hex code #000080.
Navy color codes
- CSS name
navy - HEX
#000080 - RGB
rgb(0, 0, 128) - HSL
hsl(240, 100%, 25%) - OKLCH
oklch(27.1% 0.188 264.1)
HSB and CMYK values
- HSB / HSV
hsb(240, 100%, 50%) - CMYK
C100 M100 Y0 K50
White text
16.00:1 · passes WCAG AAA
Black text
1.31:1 · fails WCAG
Shades of navy
A lighter shade of navy is #1541B4 (600).
Colors that go with navy
Complementary
Analogous
Triadic
The complementary color of navy is #808000, which is olive.
Click a color to copy its hex code.
Colors similar to navy
- Dark blue#00008B
Slightly lighter
- Midnight blue#191970
Slightly lighter, more muted
- Medium blue#0000CD
Lighter, more vivid
- Indigo#4B0082
Lighter, more purple
- Dark slate blue#483D8B
Lighter, more purple, more muted
- Rebecca purple#663399
Lighter, more purple
Each compared with navy.
About this color
Navy in CSS and design
Navy is one of the 16 basic color keywords, which come from the VGA palette by way of HTML. These four lines all give the same navy:
color: navy;
color: #000080;
color: rgb(0, 0, 128);
color: hsl(240, 100%, 25%);What to know about navy
Merriam-Webster defines navy blue simply as a very dark blue, and CSS navy (#000080), the blue channel at half strength, is the darkest of the 16 basic colors after black. Dark blue (#00008B) is nearly the same color, only 11 steps brighter in blue. Midnight blue (#191970) is the softer, grayer alternative.
Frequently asked questions
What is the hex code for navy (navy blue)?
#000080. Navy blue is called navy in CSS, so use the keyword navy, which works in every browser.
What is navy in RGB and HSL?
In RGB it is rgb(0, 0, 128) and in HSL hsl(240, 100%, 25%). In CMYK it is about C100 M100 Y0 K50, though printed colors vary with paper and ink.
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.
What is the complementary color of navy?
#808000, which is olive. It sits opposite navy on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with navy?
For strong contrast, pair it with its complementary color #808000. For a calmer look, combine it with its analogous neighbors #004080 and #400080. The palette generator builds more combinations.