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
Black 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%);
}
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
- Blue#0000FFrgb(0, 0, 255)
- Cobalt blue#0047ABrgb(0, 71, 171)
- Royal blue#4169E1rgb(65, 105, 225)
- Violet#7F00FFrgb(127, 0, 255)
- Indigo#4B0082rgb(75, 0, 130)
- Periwinkle#CCCCFFrgb(204, 204, 255)
See all popular colors · All HTML color names · Open navy blue in the color picker