About Dark Red
Dark Red (darkred) is a dark, vivid red with the hex code #8b0000, or rgb(139, 0, 0). In HSL it sits at a hue of 0°, 100% saturation and 27% lightness. It is one of the 148 named colors every browser understands, so you can write color: darkred; instead of the hex value.
Using Dark Red for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Dark Red text on white | 10.01 : 1 | AAA |
| Dark Red text on black | 2.10 : 1 | fails |
On a dark red background, use white text (10.01 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.
CSS
.element {
color: darkred; /* or #8b0000 */
background-color: #8b0000;
border: 1px solid rgb(139 0 0 / 50%);
}
Similar named colors
Maroon (#800000), Fire Brick (#b22222), Brown (#a52a2a), Saddle Brown (#8b4513), Sienna (#a0522d), Crimson (#dc143c).