Navy Blue Color
CSS navy #000080 — a very dark, pure blue.
Navy Blue
#000080
- HEX
- #000080
- RGB
- rgb(0, 0, 128)
- HSL
- hsl(240, 100%, 25.1%)
- HSV
- hsv(240, 100%, 50.2%)
- CMYKapproximation
- cmyk(100%, 100%, 0%, 50%)
- CSS name
- navy
Open navy blue in the color picker to adjust it or copy other formats.
About navy blue
#000080 is the CSS named color navy, one of the original 16 HTML colors: blue at 128 with no red or green. It is named after the dark blue of naval uniforms.
In CSS, navy is marginally darker than darkblue (#00008B). Many modern “navy” brand colors are softer, adding a little red and green — midnightblue (#191970) or custom values such as #1F2A44 give that more muted look.
#000080 is the value of the CSS named color navy, defined in the CSS Color specification and identical in every browser.
Other colors called navy blue
- Dark blue (CSS)
#00008BVery slightly lighter. - Midnight blue (CSS)
#191970A softer, less saturated navy.
Navy Blue shades and tints
Shades mix navy blue with black, tints mix it with white — useful for hover states, borders and backgrounds. Click a swatch to copy its HEX code.
Colors that go with navy blue
Color harmonies based on the hue of #000080: its complement on the opposite side of the color wheel, its analogous neighbours and its triadic partners.
Navy Blue contrast and readability
On a navy blue background, white text reads best (16.00:1). Here is how navy blue works as a text color:
#000080 on white
16.00:1
Normal text sample
Large text
- AA normal text (4.5:1)Pass
- AA large text (3:1)Pass
- AAA normal text (7:1)Pass
- AAA large text (4.5:1)Pass
#000080 on black
1.31:1
Normal text sample
Large text
- AA normal text (4.5:1)Fail
- AA large text (3:1)Fail
- AAA normal text (7:1)Fail
- AAA large text (4.5:1)Fail
Navy is a classic alternative to black for text, headers and footers: it has very high contrast with white and pairs well with white, gold, coral and light gray.
Using navy blue in CSS and HTML
:root {
--color-navy-blue: #000080;
}
.highlight {
background-color: var(--color-navy-blue);
}.banner {
background-color: navy;
color: #ffffff;
}
.label {
color: #000080;
border: 2px solid rgb(0, 0, 128);
}<p style="background-color: #000080; color: #FFFFFF;">
Navy Blue background
</p>Navy Blue color FAQ
- What is the HEX code for navy blue?
- Navy Blue is #000080 in HEX and rgb(0, 0, 128) in RGB. It is also the CSS named color navy, so color: navy and color: #000080 give exactly the same result.
- What is navy blue in CMYK?
- Approximately 100%, 100%, 0%, 50% (cyan, magenta, yellow, black). This is the standard profile-free conversion of #000080; for professional print, check the value against your printer's color profile.
- What colors go with navy blue?
- Its complementary color is #808000, and #004080 and #400080 sit next to it on the color wheel as analogous colors. White, black and gray always work as neutral partners; the matching colors above show more combinations.
- Should I use black or white text on navy blue?
- White text: it has a contrast ratio of 16.00:1 on #000080, which meets WCAG AAA for normal text.