Dark Blue color (#00008B)
Dark Blue is one of the 148 CSS named colors. Use the keyword darkblue
anywhere CSS accepts a color, or its hex code #00008B, which is rgb(0, 0, 139) in RGB.
It is a very dark, vivid cool color with a hue angle of 240° on the HSL color wheel and a perceived lightness of 29% in OKLCH. On a dark blue background, white text gives the higher contrast at 15.29:1, which passes WCAG AA for normal text.
Dark Blue color codes
| CSS name | darkblue |
|
|---|---|---|
| HEX | #00008B |
|
| HEX (8-digit) | #00008BFF |
|
| RGB | rgb(0, 0, 139) |
|
| HSL | hsl(240, 100%, 27%) |
|
| HSV / HSB | hsv(240, 100%, 55%) |
|
| OKLCH | oklch(28.8% 0.1994 264.1) |
|
| CMYK | cmyk(100%, 100%, 0%, 45.5%) |
Contrast with white and black
WCAG 2 contrast ratios and APCA lightness contrast (Lc) for dark blue used as text and as a background.
Tints and shades of dark blue
Tints mix dark blue with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.
Tints
Shades
Colors that go with dark blue
Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.
Complementary
Analogous
Triadic
Split-Complementary
Dark Blue with color blindness
Approximately how dark blue appears with each type of color vision deficiency. Test full designs with the color blindness simulator.
Using dark blue in CSS
.element {
color: darkblue;
background-color: #00008b;
border-color: rgb(0 0 139 / 50%);
outline-color: oklch(28.8% 0.1994 264.1);
}Similar named colors
See all shades of blue or browse every CSS color name.