darkred — #8B0000
#8B0000
rgb(139, 0, 0) · hsl(0, 100%, 27%) · CSS keyword darkred
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| darkred on white | 10.01:1 | AA | AA |
| darkred on black | 2.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
- maroon — #800000
- firebrick — #B22222
- brown — #A52A2A
- purple — #800080
- darkmagenta — #8B008B
- crimson — #DC143C
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
- darksalmon — #E9967A
- darkseagreen — #8FBC8F
- darkslateblue — #483D8B
- darkslategray — #2F4F4F
- darkturquoise — #00CED1
- darkviolet — #9400D3
- deeppink — #FF1493
- deepskyblue — #00BFFF
- dimgray — #696969
- dodgerblue — #1E90FF
- firebrick — #B22222
- floralwhite — #FFFAF0
#8B0000 in full — tints, shades and harmonies · All named colours · Colour reference