Dark Blue Hex Code #00008B
Dark Blue is a very dark, strong blue with the hex code #00008B. In RGB it is 0, 0, 139, and in HSL it is 240°, 100%, 27%. It is one of the 148 named colors in CSS, so you can write “darkblue” instead of the hex code.
- HEX
- #00008B
- RGB
- rgb(0, 0, 139)
- HSL
- hsl(240, 100%, 27%)
- HSV
- hsv(240°, 100%, 55%)
- CMYK
- cmyk(100%, 100%, 0%, 45%)
- CSS name
- darkblue
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Dark Blue
On a white background Dark Blue has a contrast ratio of 15.30:1 (AAA), and on black 1.37:1 (Fail). White text is the better choice on top of it.
It sits on the cool side of the color wheel, a range that tends to feel calm and appears to recede.
Blue is the most common color in interfaces. It signals trust and calm, which is why banks, software and healthcare brands favour it.
Shades and tints of Dark Blue
Tints mix Dark Blue with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Dark Blue
These schemes are calculated from Dark Blue on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Dark Blue is #8B5A00, close to the named color Saddle Brown.
Dark Blue contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Dark Blue scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 15.30:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
| Black (#000000) | 1.37:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
Dark Blue and color blindness
These are approximate previews of how Dark Blue can look with the main types of color vision deficiency.
Dark Blue changes noticeably.
Dark Blue shifts slightly.
Dark Blue changes noticeably.
Dark Blue changes noticeably.
Gradients with Dark Blue
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Dark Blue to a lighter tint
background: linear-gradient(135deg, #00008b 0%, #9999d1 100%); Dark Blue to its analogous neighbour
background: linear-gradient(135deg, #00008b 0%, #46008b 100%); Dark Blue to its complement
background: linear-gradient(135deg, #00008b 0%, #8b8b00 100%); Colors similar to Dark Blue
How each close match differs from Dark Blue.
- Navy #000080 Very close in lightness, saturation and hue.
- Indigo #4B0082 Slightly lighter, leans more violet.
- Midnight Blue #191970 More muted.
- Rebecca Purple #663399 Lighter, more muted, leans more violet.
- Medium Blue #0000CD Slightly lighter, more saturated.
- Dark Orchid #9932CC Lighter, leans more violet.
Use Dark Blue in code
.element {
color: #00008b;
background-color: #00008b;
border-color: darkblue; /* darkblue is a valid CSS color name */
} :root {
--color-dark-blue: #00008b;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#00008b] text-[#00008b] border-[#00008b]"></div>
/* Tailwind v4 theme color */
@theme {
--color-dark-blue: #00008b;
} Dark Blue questions
What is the hex code for Dark Blue?
The hex code for Dark Blue is #00008B. In RGB that is rgb(0, 0, 139), and in HSL it is hsl(240, 100%, 27%).
What is the complementary color of Dark Blue?
On the RGB (screen) color wheel, the complement of Dark Blue is #8B8B00, which is close to Olive. On the artist’s RYB wheel it is #8B5A00, close to Saddle Brown.
Should I use white or black text on Dark Blue?
White text. It has a contrast ratio of 15.30:1 against Dark Blue, which is WCAG AAA. The other option scores 1.37:1.
Is Dark Blue accessible as a text color on white?
Yes. Dark Blue on white scores 15.30:1, which passes WCAG AA for normal text (4.5:1) and AAA (7:1).
What are darker and lighter shades of Dark Blue?
Mixing Dark Blue with black gives #00006F, #000053, #000038, #00001C (20% to 80% black). Mixing it with white gives #3333A2, #6666B9, #9999D1, #CCCCE8 (20% to 80% white).