On this page
On this page you will find every code format, how dark blue compares with navy and midnight blue, colors that pair well with it, copyable palettes, contrast numbers and print advice. Use the palette maker above to build monochrome, analogous, complementary, triadic and split schemes from , then read on for what to do with them.
Dark Blue Hex, RGB, HSL and CMYK Codes
The name “dark blue” is a CSS keyword: write darkblue in a stylesheet and the browser renders . There is no red and no green in it. All the color comes from the blue channel, set to 139 out of 255, or about 55%. That is why it looks so clean and so intense next to blues that have grey mixed in.
| Format | Value |
|---|---|
| HEX | |
| RGB | rgb(0, 0, 139) |
| HSL | hsl(240, 100%, 27%) |
| HSV / HSB | 240°, 100%, 55% |
| CMYK (basic conversion) | 100, 100, 0, 45 |
| CSS keyword | darkblue |
| Nearest web-safe |
The CMYK line comes from the standard mathematical conversion, not from a press. A printer’s ICC profile will give different ink percentages, and the result is usually a little less saturated. More on that in the printing section.
What Dark Blue Looks Like on Screen
Hold next to a black rectangle and you will see a blue that still insists on being blue. It does not drift toward grey or teal. On a bright phone display it can even hum slightly, because pure blue light is intense while our eyes are less sensitive to it, so small text in this color can look softer at the edges than you expect.
Compared with a muted slate or denim, dark blue feels formal and a bit electric. Compared with pure , it feels grounded. That mix of formality and energy is why it works for banners, buttons and headline blocks but can feel heavy across a whole page of body copy.
Lighter tints of the same hue are easy to produce and stay harmonious. Mixing with white in 20% steps gives , , and . Going the other way, adding black gives , and at 20%, 40% and 60%. Those eight values form a ready-made monochrome ramp.
Dark Blue vs Navy, Midnight Blue and Pure Blue
People use “dark blue” loosely, so it helps to know which named colors sit around it. These are the ones designers most often confuse:
- Navy : one step darker and a hair flatter.
- Midnight Blue : carries red and green, so it looks greyer and more violet.
- Dark Slate Blue : clearly purple-leaning and dustier.
- Blue : the same hue at full brightness, far more vivid.
Navy and dark blue are the closest pair. The only difference is the blue channel, 128 for navy against 139 for dark blue, so on most screens you need them side by side to see it. If you want the navy side of the family, our guides to navy and grey and navy and green show how that deeper tone behaves in real combinations.
If the blue looks almost black in a dim room, it is midnight or Oxford blue. If it still looks plainly, brightly blue, it is dark blue or navy.
Which of these is slightly lighter?
Dark blue has a blue channel of 139 against navy's 128, so it is a touch brighter.
Midnight blue earns its name from the night sky, and its first recorded use as a color name in English dates to 1915. That history is part of why it feels softer and more atmospheric than the CSS dark blue, which is simply blue at half brightness.
Colors That Go With Dark Blue
Because is saturated and dark, it asks for partners that either rest the eye or spark against it. Warm neutrals do the first job well: ivory, cream, sand and light stone. A soft off-white such as pearl white keeps the page crisp without the harshness of pure . For a livelier pairing, a pale yellow like baby yellow sits opposite blue on the wheel and makes the dark blue look deeper.

Here are the classic harmony points, all calculated at the same saturation and lightness as the original:
- Complementary: (olive yellow)
- Analogous: (steel-leaning blue) and (violet)
- Triadic: (the red of CSS darkred) and (deep green)
- Split complementary: (burnt orange) and (leaf green)
Full-strength pairings at equal darkness can feel heavy, so shift the lightness of the partner. A dark red such as dark red next to dark blue looks rich on a book cover, but both vanish at small sizes unless a light neutral sits between them. A touch of antique gold or warm orange almost always works as an accent.
Dark Blue Color Palettes You Can Copy
The four palettes below are built around and each has a different job. Boardroom Blue is the safest: it pairs the blue with a deeper midnight tone, cool greys and one gold accent. Ink and Ivory leans on cream and sand for a printed, heritage feel, with a muted red as the single warm note.
Corporate sites, annual reports and dashboards that need calm authority.
Wedding stationery, editorial layouts and heritage brand packaging with warmth.
Event posters, app onboarding screens and music branding with an orange spark.
Interior feature walls, travel sites and calm coastal presentations.
Electric Evening uses the tints of dark blue plus a warm orange, which gives posters and onboarding screens a strong focal point. Cold Harbor goes darker and cooler, anchored by and softened by steel and ice blues. If you want a gentler, less saturated cousin for backgrounds, try the muted blue page for dustier options that sit comfortably beside it.
Using Dark Blue in Web and UI Design
Dark blue works best as a surface or a structural color: headers, footers, sidebars, hero blocks and primary buttons. As body text on white it is excellent, with a contrast of about 15.3:1, though thin weights at small sizes can shimmer slightly on some screens. Setting a variable once keeps everything consistent:
:root {
--blue-900: #000053;
--blue-700: #00008B;
--blue-400: #6666B9;
--blue-100: #CCCCE8;
}
.hero { background: var(--blue-700); color: #fff; }
.link { color: var(--blue-700); }
.card { border-top: 4px solid var(--blue-400); }
For dark mode, avoid putting itself on a near-black page. It has about 1.4:1 contrast against black, so borders, icons and text in this color will vanish. Use a lighter tint such as or for interactive elements on dark backgrounds, and keep for large fills that carry white text.
Try this: Create a button in with white text, then duplicate it on a background. Swap the button fill to on the dark version and compare how clearly the edge reads.
Is Dark Blue Accessible? WCAG Contrast Ratios
The relative luminance of is about 0.0186, which is very low. Against white that gives a contrast ratio of roughly 15.3:1, comfortably above the WCAG thresholds of 4.5:1 for normal text and 7:1 for AAA. Against black the ratio falls to about 1.37:1, which fails everything.
Which text color is the safe choice on a #00008B background?
White gives about 15.3:1 contrast, while black only manages about 1.4:1.
Pure blue scores around 8.6:1 on white, so dark blue is more than a third higher. If a client asks for blue text on a light background and wants it “more readable”, this is the fix: step down from bright blue to dark blue and the numbers improve at once.

Contrast is only half of the story for blue. Because our eyes resolve blue detail poorly, thin strokes and tiny text in saturated blue can look blurry even with a passing ratio. On one accessibility pass for a client dashboard, I replaced a light blue link color with this exact dark blue and raised the font weight slightly, and support requests about hard-to-read links stopped. Treat the ratio as a minimum, then check on a real device.
Dark Blue in Branding, Fashion and Interiors
In branding, dark blue signals competence without the severity of black. It suits finance, law, technology, education and healthcare, and it takes a white or pale logo cleanly. Many state and institutional identities lean on deep blues for the same reason; the New York State flag colors are a good example of a deep blue field carrying a detailed emblem in other colors.
In fashion, dark blue is a wardrobe anchor: tailoring, denim washes and knitwear. It flatters most skin tones and pairs easily with white, camel and grey. Saturated is bolder than a business navy, so it tends to read as a deliberate color choice, especially in silk, velvet or satin where light plays across it.
In interiors, a wall this saturated needs care. It deepens a room and makes it feel enclosed, which is lovely in a study, a dining room or a bedroom with generous daylight and a lot of white trim. Paint manufacturers mix their own formulas, so take as a direction, then test a sample card in your own light. In art, it is a strong shadow color and a good base for night scenes, since it stays chromatic where black goes dead.
Printing Dark Blue Without Surprises
Screens can show because they emit blue light directly. Inks cannot match that fully. The basic CMYK recipe of 100 cyan, 100 magenta, 0 yellow and 45 black is a mathematical starting point, not a promise. On an uncoated stock, I once had a proof for a stationery set come back noticeably more violet and flatter than the screen version, and we adjusted by cutting the magenta slightly and adding a touch of cyan-weighted black.
Practical steps for reliable results:
- Ask the printer which ICC profile and paper they use, and convert with that profile rather than a generic one.
- Request a physical proof for any large dark blue area, since solid fills show banding and shifts more than text does.
- For brand-critical work, specify a spot ink (a Pantone match) instead of relying on four-color process.
- Keep body text off big dark fills, because small white reversed text can fill in on press.
If the print color matters more than the exact screen value, choose a blue that your printer can hit cleanly and adjust the digital version to match it.
What Dark Blue Means and Why Designers Trust It
Dark blue is associated with authority, stability, intelligence and trust. These are conventions of Western branding rather than universal laws, and meaning shifts with context and culture, but the pattern is consistent in uniforms, banking, universities and government. The deeper the blue, the more it moves from friendly toward formal.
That is also why pairing matters. With cream and gold it feels traditional and prestigious. With bright coral or aqua it becomes playful and modern; try it beside aqua blue for a cool, layered ocean effect. With plenty of white space it feels clean and clinical. Pick the partner colors first and the mood follows.
Used well, is a dependable lead color. Give it room, keep its tints close by for hover states and borders, and pair it with a warm neutral so it never turns heavy.
Colors close to dark blue
Dark Blue Color: questions people ask
What is the hex code for dark blue?
The hex code for dark blue is #00008B. It is the CSS named color darkblue, which equals rgb(0, 0, 139) and hsl(240, 100%, 27%).
Is dark blue the same as navy?
No, but they are close neighbors. Navy (#000080) has a blue channel of 128, while dark blue (#00008B) has 139, so dark blue is a little brighter and slightly more vivid.
What colors go well with dark blue?
Warm neutrals such as ivory, cream and sand, soft greys, antique gold and a small amount of orange or coral all work. Light tints of the same blue also make a clean monochrome scheme.
Can you read white text on dark blue?
Yes. White on #00008B has a contrast ratio of about 15.3:1, which passes WCAG AA and AAA for normal and large text.
Why does dark blue print differently from how it looks on screen?
#00008B is a saturated blue that sits near the edge of what CMYK inks can reproduce. The naive conversion of 100, 100, 0, 45 often prints a little more violet and duller, so always check a proof.
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
- Cream Color: Hex Code, RGB and Palettes
- Azure Blue Color: Hex Code, RGB and Palettes
- Pink and Purple Color Combination: Palettes and Hex Codes
- Skin Tone Hex Codes: Realistic Skin Color Palettes