On this page
I use it as a softer, more characterful alternative to black. This page covers exact codes, the shades people confuse it with, contrast, print, and palettes you can copy. Use the palette maker above to build monochrome, analogous, complementary, triadic and split palettes from it with one click.
Dark Navy Hex, RGB, HSL and CMYK Codes
Every value below is calculated directly from . The red and green channels are zero and blue sits at 128, exactly half the 0 to 255 range. That is why lightness comes out at 25%: the hue is a pure 240 degrees, saturation is maxed out, and the color sits a quarter of the way up from black.
| Format | Value |
|---|---|
| HEX | |
| RGB | rgb(0, 0, 128) |
| HSL | hsl(240, 100%, 25%) |
| HSB / HSV | 240°, 100%, 50% |
| CMYK (basic conversion) | 100, 100, 0, 50 |
| CSS keyword | navy |
The CMYK line is the textbook conversion, not what a press will actually produce. I explain the gap in the printing section below.
Why Dark Navy Has So Many Different Hex Codes
There is no single official standard for the two words “dark navy”. The code comes from the HTML and CSS color keywords, where it is simply named navy. Color-name libraries and swatch sites, on the other hand, attach “dark navy” to much darker or duller values: , , , and all appear under that name.
Need the CSS keyword or a pure, vivid navy? Use . Want a calm navy for large backgrounds and text? Try a greyer value like .
What does the CSS keyword navy equal?
Navy is #000080, while darkblue is #00008B and midnightblue is #191970.
None of these is wrong. They are different answers to the same loose name, and mixing them across a project is how brand blues drift. Pick one value, give it a variable name, and use that everywhere.
Dark Navy vs Midnight Blue, Dark Blue and Oxford Blue
Dark navy has a hue of exactly 240, with no green in it at all. That is why it looks slightly electric and a little violet on screen. Dark Blue is almost identical, only a touch brighter. Midnight Blue adds some red and green, which makes it greyer and calmer.
Oxford Blue goes the other way. The University of Oxford’s branding guidelines define it as Pantone 282, equivalent to . That value carries green, so it reads as steely, almost slate-like next to pure navy. Prussian Blue leans even further toward teal.
Colors That Go With Dark Navy
Navy is a strong anchor, so pairings are forgiving. Warm, light neutrals make it feel crisp, while warm metals and soft pinks add personality. These are the combinations I reach for first:
- Cream or ivory for a gentle, editorial feel (try cream as the light base)
- Brass or light gold for something that feels premium
- Baby pink or coral for a friendly, modern contrast
- Wine red for a rich, traditional, almost collegiate mood
- Ice blue for a cool tone-on-tone scheme
The classic color wheel harmonies also work. The complement of is olive . Analogous neighbors are and . A triad adds maroon and green , and a split complement uses and . At full saturation these can be loud, so lighten or mute the partners and let navy do the anchoring.
Dark Navy Contrast and WCAG Accessibility
Navy’s biggest practical strength is contrast. Using the WCAG relative luminance formula, has a luminance of about 0.0156. That gives white text a contrast ratio of about 16:1 and a gold like about 11.4:1. Both clear the 4.5:1 AA threshold for body text and the 7:1 AAA threshold easily.
Which text color is the safest choice on a #000080 background?
White gives about 16:1 contrast, while black on #000080 manages only about 1.3:1.
The trap runs the other way. Black on is only about 1.3:1, which is practically invisible. I once flagged a dark mode design where captions in a mid-blue sat on navy cards. They looked fine on a bright office monitor and vanished on phones outdoors. Lightening the caption color to a pale tint fixed it without touching the brand palette.
Try this: Set one line of text in and another in , both on a background. Squint, or step back from your screen, and notice which one you can still read. That is the contrast gap in a nutshell.
Using Dark Navy in Web and UI Design
Navy works well for headers, footers, primary buttons and dark mode surfaces. Because pure is so saturated, large full-screen areas of it can feel intense, and thin light text on it can shimmer on some displays. For big surfaces I often step down to a greyer navy and keep for accents, links and buttons.

:root {
--navy: #000080;
--navy-deep: #000040;
--paper: #ffffff;
}
.button-primary {
background: var(--navy);
color: var(--paper);
}
.hero {
background: linear-gradient(135deg, var(--navy), var(--navy-deep));
}
A few habits keep navy interfaces clean:
- Use white or a pale tint for text on navy, never black or a mid-gray.
- Mix in a neutral dark gray such as #2F3136 for cards and panels so navy stays special.
- Define hover states by lightening toward a lighter blue, not by adding opacity.
Dark Navy in Branding, Fashion and Interiors
Navy reads as trustworthy and calm, which is why banks, airlines, schools and software companies lean on it. It also photographs well, because it keeps detail where black turns flat. In branding I treat it as a neutral that happens to have a personality: pair it with one accent color and you have a system.
In fashion it replaces black in tailoring and denim, and it pairs particularly well with dark brown shoes and belts. In interiors, pure is too vivid for walls. Paint colors called navy are almost always greyer, and a sample in your actual light is the only reliable test. On a north-facing room it can feel cave-like, so add warm bulbs and light trim.
Printing Dark Navy Without Nasty Surprises
Screens mix light, presses mix ink, and is more saturated than many print setups can match. I once approved a navy straight from a screen file for packaging, and the press proof came back flatter and slightly more purple than the monitor suggested. We fixed it by proofing on the final paper and adjusting the ink mix.

Start from CMYK 100, 100, 0, 50 and expect to tweak it. Coated paper keeps navy vivid, while uncoated stock soaks up ink and makes it look darker and duller. For a brand navy that has to match everywhere, a spot ink is safer than a CMYK build. Pantone 281 C is a common starting point for navy this deep, although it is lighter and less violet than , so compare physical swatches.
Where Dark Navy Shows Up: Navies, Flags and Team Colors
The name itself comes from naval uniforms: navy blue is the dark blue worn by sailors and officers of the Royal Navy from the 18th century. That is why dark blues like feel nautical and formal.
Flags and teams use their own official shades, which are almost never exactly . The blue in the American flag is a deep navy-leaning blue, and you can see patriotic combinations in our Memorial Day colors palettes. Sports teams and universities publish exact values in their brand guidelines, so if you need an official match, use that value and not a generic navy.
Dark Navy Palettes You Can Copy
The palettes below are built around and tested for readability. They cover warm and cool pairings, a monochrome set for interfaces, and a classic nautical scheme.
Premium brand sites, invitations and finance dashboards that need a warm accent.
Dark mode interfaces and slide decks with depth but only one hue.
Friendly app onboarding, lifestyle brands and summer wedding stationery.
Sailing clubs, patriotic events, merch and classic striped apparel graphics.
Click any swatch to copy its code. If you want a different mood, open the palette maker at the top of the page and switch between harmony types.
Colors close to dark navy
Dark Navy Color: questions people ask
What is the hex code for dark navy?
The classic dark navy is #000080, which is the CSS and HTML keyword navy (RGB 0, 0, 128). Many color libraries use their own darker or greyer values for the name, such as #1D2545 or #000435, so always check the code and not just the label.
Is dark navy the same as navy blue?
In web design, yes: navy and #000080 are the same color. In fashion and paint, navy blue is usually a slightly softer, greyer shade, and dark navy simply means a deeper version of it.
What color is darker, navy or midnight blue?
By lightness, navy #000080 is the darker of the two, at 25% HSL lightness against roughly 27% for midnight blue #191970. Midnight blue looks softer because it is less saturated, so the gap is small.
What colors go well with dark navy?
Cream, ivory, brass or gold, coral, blush pink, ice blue and wine red all work well. Dark navy also pairs with crisp white for a classic nautical look.
Can I use dark navy instead of black for text?
Yes. Dark navy on white has a contrast ratio of about 16:1, which passes WCAG AA and AAA for body text. It reads a little softer than black and gives a brand a subtle blue tint.
Keep exploring
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes
- Lavender Color: Hex Code, RGB and Palettes
- Mint Green Color: Hex Code, RGB and Palettes
- Azure Blue Color: Hex Code, RGB and Palettes
- Dark Grey Color: Hex Code, RGB and Palettes
- Pink and Purple Color Combination: Palettes and Hex Codes
- Skin Tone Hex Codes: Realistic Skin Color Palettes