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

#00008b
HEX#00008b
RGBrgb(0, 0, 139)
HSLhsl(240, 100%, 27%)

Harmonies

Complementary

#8a8a00

Analogous

#00458a#45008a

Triadic

#8a0000#008a00

Split complementary

#8a4500#458a00

Tints & shades

#000075#000080#00008a#000094#00009e

Accessibility

vs #ffffff15.3:1
vs #0000001.37:1
Suggested text color#ffffff · 15.3:1 · WCAG AAA

Similar named colors

navy#000080midnightblue#191970mediumblue#0000cdindigo#4b0082darkslateblue#483d8bdarkslategray#2f4f4f

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.

← All named colors