Basic HTML and CSS color
Maroon #800000
Maroon (CSS keyword maroon) has the hex code #800000 and the RGB value rgb(128, 0, 0): a dark, vivid red.
Maroon (#800000) is one of the 16 original HTML colors, half-intensity red. The word comes from the French marron, chestnut. In X11 maroon was a different, pinker color (#b03060).
Color codes for Maroon
| CSS keyword | maroon |
|---|---|
| HEX | #800000 |
| RGB | rgb(128, 0, 0) |
| HSL | hsl(0, 100%, 25%) |
| HWB | hwb(0 0% 50%) |
| OKLCH | oklch(37.7% 0.155 29.2) |
| CMYK (naive, no ICC profile) | cmyk(0%, 100%, 100%, 50%) |
| Decimal | 8,388,608 |
| Hue family | Browns and tans |
Contrast and accessibility
On maroon, white text has a contrast ratio of 10.94:1 and passes AAA at any text size; black text reaches 1.91:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on maroon | 1.91:1 | Fail | Fail | Fail | Fail | 11.0 |
| White text on maroon | 10.94:1 | Pass | Pass | Pass | Pass | −97.1 |
| Maroon text on white | 10.94:1 | Pass | Pass | Pass | Pass | 92.9 |
| Maroon text on black | 1.91:1 | Fail | Fail | Fail | Fail | −9.5 |
Tints and shades
Each step mixes maroon with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, maroon, white 25%) in CSS.
Tints (mixed with white)
- 5%
#860d0d - 15%
#932626 - 25%
#a04040 - 35%
#ac5959 - 45%
#b97373 - 55%
#c68c8c - 65%
#d3a6a6 - 75%
#dfbfbf - 85%
#ecd9d9 - 95%
#f9f2f2
Shades (mixed with black)
- 5%
#7a0000 - 15%
#6d0000 - 25%
#600000 - 35%
#530000 - 45%
#460000 - 55%
#3a0000 - 65%
#2d0000 - 75%
#200000 - 85%
#130000 - 95%
#060000
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, maroon's complementary color is #004D5A (close to darkslategray), its analogous colors are #7B003F and #6A2E00, and its triadic partners are #00540E and #233492. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #004d5a |
| Analogous | −30°, +30° | #7b003f#6a2e00 |
| Triadic | +120°, +240° | #00540e#233492 |
| Split-complementary | +150°, +210° | #005043#004776 |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
Maroon is a warm color: its hue is 0° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Nearest CSS named colors
| Color | HEX | ΔE OK |
|---|---|---|
| darkred | #8b0000 | 2.5 |
| brown | #a52a2a | 10.5 |
| saddlebrown | #8b4513 | 11.4 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| red-900 | #82181a | 2.5 |
| orange-900 | #7e2a0c | 4.9 |
| rose-900 | #8b0836 | 6.2 |
Code snippets
.element {
color: maroon;
background-color: #800000;
border-color: rgb(128 0 0);
outline-color: oklch(37.7% 0.155 29.2);
}<div class="bg-[#800000] text-white">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-maroon: #800000;
}
/* then use bg-maroon, text-maroon, border-maroon */import SwiftUI
extension Color {
static let maroon = Color(red: 0.502, green: 0.000, blue: 0.000)
}import androidx.compose.ui.graphics.Color
val Maroon = Color(0xFF800000)import 'package:flutter/material.dart';
const maroon = Color(0xFF800000);<!-- res/values/colors.xml -->
<color name="maroon">#800000</color>Frequently asked questions
- What is the hex code for maroon?
- The hex code for maroon is #800000. The same color is rgb(128, 0, 0), hsl(0, 100%, 25%) and oklch(37.7% 0.155 29.2), and in CSS you can also write the keyword maroon directly.
- Is maroon a warm or cool color?
- Maroon is a warm color: its hue is 0° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
- What colors go with maroon?
- Rotating the hue in OKLCH while keeping lightness and chroma, maroon's complementary color is #004D5A (close to darkslategray), its analogous colors are #7B003F and #6A2E00, and its triadic partners are #00540E and #233492. For text on top, white gives the higher contrast.
- Can you use white text on maroon?
- White text on maroon has a contrast ratio of 10.94:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.91:1 and fails AA even for large text. In APCA terms that is Lc −97.1 for white and Lc 11.0 for black.
- What is the RGB value of maroon?
- Maroon is rgb(128, 0, 0): red 128, green 0 and blue 0 on the 0 to 255 scale, or 50.2%, 0.0% and 0.0%. As a decimal integer it is 8388608.
Last reviewed by Arielton Oberek.