CSS named color
DarkBlue Color Code
DarkBlue is a dark, vivid blue with the hex code #00008B. In RGB it is rgb(0, 0, 139), in HSL hsl(240, 100%, 27%) and in CMYK cmyk(100%, 100%, 0%, 45%).
Color values
In CSS you can write it as the keyword darkblue.
White text on DarkBlue has a contrast ratio of 15.30:1 and black text 1.37:1, so white text is the more readable choice.
The closest Tailwind CSS color is Indigo 900 (#312E81).
Use DarkBlue in CSS
.element {
color: darkblue;
background-color: #00008b;
border-color: rgb(0, 0, 139);
} Tints and shades of DarkBlue
Ten steps from light to dark at the same hue. Click any swatch to copy it.
Colors that go with DarkBlue
Color-wheel harmonies built from #00008B. Click a swatch to copy it or open the set in the color wheel.
Split complementary
Open in color wheelA base plus the two neighbors of its complement — contrast with less tension.
Text contrast on DarkBlue
Colors similar to DarkBlue
Closest CSS named colors
Closest traditional Chinese colors
Closest Tailwind colors
Palettes with similar colors
Questions about DarkBlue
What is the hex code for DarkBlue?
The hex code for DarkBlue is #00008B. Its RGB value is rgb(0, 0, 139) and its HSL value is hsl(240, 100%, 27%).
What colors go with DarkBlue?
The complementary color of DarkBlue is #8A8A00. For a softer scheme try the analogous colors #00458A and #45008A; for a balanced three-color scheme use the triadic colors #8A0000 and #008A00.
Is DarkBlue readable as a text color?
On a white background DarkBlue has a contrast ratio of 15.30:1, which passes WCAG AA for normal text (4.5:1). On black it reaches 1.37:1.