Skip to content

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

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

Color codes for Maroon
CSS keywordmaroon
HEX#800000
RGBrgb(128, 0, 0)
HSLhsl(0, 100%, 25%)
HWBhwb(0 0% 50%)
OKLCHoklch(37.7% 0.155 29.2)
CMYK (naive, no ICC profile)cmyk(0%, 100%, 100%, 50%)
Decimal8,388,608
Hue familyBrowns 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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on maroon1.91:1FailFailFailFail11.0
White text on maroon10.94:1PassPassPassPass−97.1
Maroon text on white10.94:1PassPassPassPass92.9
Maroon text on black1.91:1FailFailFailFail−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)

  1. 5%
    #860d0d
  2. 15%
    #932626
  3. 25%
    #a04040
  4. 35%
    #ac5959
  5. 45%
    #b97373
  6. 55%
    #c68c8c
  7. 65%
    #d3a6a6
  8. 75%
    #dfbfbf
  9. 85%
    #ecd9d9
  10. 95%
    #f9f2f2

Shades (mixed with black)

  1. 5%
    #7a0000
  2. 15%
    #6d0000
  3. 25%
    #600000
  4. 35%
    #530000
  5. 45%
    #460000
  6. 55%
    #3a0000
  7. 65%
    #2d0000
  8. 75%
    #200000
  9. 85%
    #130000
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
darkred#8b00002.5
brown#a52a2a10.5
saddlebrown#8b451311.4

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
red-900#82181a2.5
orange-900#7e2a0c4.9
rose-900#8b08366.2

Code snippets

CSS
.element {
  color: maroon;
  background-color: #800000;
  border-color: rgb(128 0 0);
  outline-color: oklch(37.7% 0.155 29.2);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let maroon = Color(red: 0.502, green: 0.000, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Maroon = Color(0xFF800000)
Flutter
import 'package:flutter/material.dart';

const maroon = Color(0xFF800000);
Android XML
<!-- 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.