About Maroon
Maroon (maroon) is a dark, vivid red with the hex code #800000, or rgb(128, 0, 0). In HSL it sits at a hue of 0°, 100% saturation and 25% lightness. It is one of the 148 named colors every browser understands, so you can write color: maroon; instead of the hex value.
Using Maroon for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Maroon text on white | 10.95 : 1 | AAA |
| Maroon text on black | 1.92 : 1 | fails |
On a maroon background, use white text (10.95 : 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: maroon; /* or #800000 */
background-color: #800000;
border: 1px solid rgb(128 0 0 / 50%);
}
Similar named colors
Dark Red (#8b0000), Fire Brick (#b22222), Brown (#a52a2a), Saddle Brown (#8b4513), Sienna (#a0522d), Crimson (#dc143c).