Dark Blue Color
HEX #00008B · rgb(0, 0, 139) · hsl(240, 100%, 27%)
Dark Blue color codes
Dark Blue is one of the named colors every browser understands. In CSS you can write it as darkblue or #00008B.
| Format | Value | |
|---|---|---|
| HEX | #00008B | |
| RGB | rgb(0, 0, 139) | |
| HSL | hsl(240, 100%, 27%) | |
| CMYK | 100%, 100%, 0%, 45% | |
| CSS name | darkblue |
.example {
color: darkblue;
background-color: #00008B;
border-color: rgb(0, 0, 139);
}
Colors that go with dark blue
These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.
Tints and shades of dark blue
Tints mix the color with white; shades mix it with black.
Dark Blue
Contrast and readability
1.37:1
fails
15.30:1
passes AA and AAA
Use white text on dark blue. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.
Frequently asked questions
What is the hex code for dark blue?
The hex code for dark blue is #00008B.
What is the RGB value of dark blue?
Dark Blue is rgb(0, 0, 139): 0 red, 0 green and 139 blue on a 0 to 255 scale.
What color goes with dark blue?
Its complementary color is #8B8B00, which is closest to the named color olive. Analogous and triadic matches are listed on this page.
Should text on dark blue be black or white?
Use white text. The contrast ratio is 1.37:1 with black and 15.30:1 with white. WCAG AA asks for at least 4.5:1 for normal text.
Similar named colors
Pick any other color with the color picker, or browse all named colors.