darkblue darkblue #00008b
darkblue is #00008b in hexadecimal, rgb(0, 0, 139) in decimal and hsl(240, 100, 27) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.
HEX · RGB · HSL
| HEX | #00008b |
| RGB | rgb(0, 0, 139) |
| HSL | hsl(240, 100%, 27%) |
Harmonies
Complementary
#8a8a00Analogous
#00458a#45008aTriadic
#8a0000#008a00Split complementary
#8a4500#458a00Tints & shades
Accessibility
| vs #ffffff | 15.3:1 |
| vs #000000 | 1.37:1 |
| Suggested text color | #ffffff · 15.3:1 · WCAG AAA |
Similar named colors
FAQ
What is the HEX code for darkblue?
darkblue is #00008b in hex, rgb(0, 0, 139) in decimal and hsl(240, 100%, 27%) in HSL. In CSS you can write either color: darkblue; or color: #00008b; — they are equivalent.
What colors go with darkblue?
The complementary #8a8a00 gives the strongest contrast, the analogous pair #00458a / #45008a is the safest, and the triad #8a0000 / #008a00 adds more tension. All three are derived from the 240° hue of #00008b.
Does #00008b read better on white or black?
Its contrast is 15.3:1 against white and 1.37:1 against black. Use #ffffff text on it — that gives 15.3:1, which meets WCAG AAA.
Is a named color different from a hex color?
No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.