Toolman

darkred — #8B0000

#8B0000

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

Can you put text on it?

ContrastBody textLarge text
darkred on white10.01:1AAAA
darkred on black2.1:1

As a background, darkred takes white text: 10.01:1 against 2.1: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: darkred;
color: #8b0000;
color: rgb(139 0 0);

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 darkred

Frequently asked questions

What is the hex code for darkred?

The hex code for darkred is #8B0000 — RGB 139, 0, 0.

Can I use darkred for text?

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

Should text on darkred be black or white?

White — 10.01:1 against 2.1:1 the other way.

Other named colours

#8B0000 in full — tints, shades and harmonies · All named colours · Colour reference