Toolman

darkblue — #00008B

#00008B

rgb(0, 0, 139) · hsl(240, 100%, 27%) · CSS keyword darkblue

Can you put text on it?

ContrastBody textLarge text
darkblue on white15.3:1AAAA
darkblue on black1.37:1

As a background, darkblue takes white text: 15.3:1 against 1.37:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.

Using it

color: darkblue;
color: #00008b;
color: rgb(0 0 139);

All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.

Colours close to darkblue

Frequently asked questions

What is the hex code for darkblue?

The hex code for darkblue is #00008B — RGB 0, 0, 139.

Can I use darkblue for text?

Yes. darkblue reaches 15.3:1 against white, past the 4.5:1 that WCAG AA asks for body text.

Should text on darkblue be black or white?

White — 15.3:1 against 1.37:1 the other way.

Other named colours

#00008B in full — tints, shades and harmonies · All named colours · Colour reference