Navy Color
HEX #000080 · rgb(0, 0, 128) · hsl(240, 100%, 25%)
Navy color codes
Navy is one of the named colors every browser understands. In CSS you can write it as navy or #000080.
| Format | Value | |
|---|---|---|
| HEX | #000080 | |
| RGB | rgb(0, 0, 128) | |
| HSL | hsl(240, 100%, 25%) | |
| CMYK | 100%, 100%, 0%, 50% | |
| CSS name | navy |
.example {
color: navy;
background-color: #000080;
border-color: rgb(0, 0, 128);
}
Colors that go with navy
These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.
Tints and shades of navy
Tints mix the color with white; shades mix it with black.
Navy
Contrast and readability
1.31:1
fails
16.01:1
passes AA and AAA
Use white text on navy. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.
Frequently asked questions
What is the hex code for navy?
The hex code for navy is #000080.
What is the RGB value of navy?
Navy is rgb(0, 0, 128): 0 red, 0 green and 128 blue on a 0 to 255 scale.
What color goes with navy?
Its complementary color is #808000, which is closest to the named color olive. Analogous and triadic matches are listed on this page.
Should text on navy be black or white?
Use white text. The contrast ratio is 1.31:1 with black and 16.01:1 with white. WCAG AA asks for at least 4.5:1 for normal text.
Similar named colors
Pick any other color with the color picker, or browse all named colors.