Maroon hex code

The hex code for maroon is #800000, or rgb(128, 0, 0). CSS also accepts the keyword maroon.

#800000
HEX#800000
RGBrgb(128, 0, 0)
HSLhsl(0, 100%, 25%)
HSV / HSBhsv(0, 100%, 50%)
OKLCHoklch(37.67% 0.1546 29.23)
CMYKcmyk(0%, 100%, 100%, 50%)
HEX, 50% opacity#80000080
RGB, 50% opacityrgb(128 0 0 / 50%)
CSS namemaroon
Defined inHTML 4.01 (one of the original 16 color names)

About maroon

CSS maroon (#800000) is red at about half strength with no green or blue, one of the 16 HTML 4 color names.

Related deep reds are darkred (#8B0000), brown (#A52A2A) and firebrick (#B22222).

Shades and tints of maroon

Maroon lands on the 900 step. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For maroon mixed with white, black or gray in even steps, use the tint and shade generator.

50#FFF3EF100#FFE4DD200#FFCDC3300#FFAB9C400#FF7A67500#FF4A3A600#F30000700#CA0000800#A90000900#800000950#520402

Colors that go with maroon

Partner hues are picked on the OKLCH color wheel at a mid lightness, because maroon itself is very dark.

Complementary: the opposite hue

#800000#007383

Open in the palette generator · Compare the screen and painter's complements of maroon

Analogous: neighboring hues 30° either side

#800000#A43261#9B4A00

Open in the palette generator · See analogous and monochromatic colors of maroon on three wheels

Triadic: three hues 120° apart

#800000#007A2B#415ABA

Open in the palette generator

Split complementary: the two hues beside the complement

#800000#007765#006BA9

Open in the palette generator

Text on maroon

White text on maroon: 10.95:1
Black text on maroon: 1.92:1
TextRatioAA normalAA largeAAA normal
White10.95:1PassPassPass
Black1.92:1FailFailFail

The ratio is the same either way round, so maroon text on a white background is also 10.95:1. Check other pairs in the color contrast checker.

Similar named colors

The CSS named colors closest to maroon, by deltaE OK distance.

darkred #8B0000brown #A52A2Asaddlebrown #8B4513firebrick #B22222sienna #A0522Dpurple #800080

See all 148 on the color names page.

Closest Tailwind CSS colors

red-900 v4: red-900, #82181A, deltaE OK 0.025

red-900 v3: red-900, #7F1D1D, deltaE OK 0.030

In Tailwind CSS v4 it is red-900 (#82181A), and in v3 red-900 (#7F1D1D). For the exact color, use an arbitrary value such as bg-[#800000]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.

Maroon with color vision deficiency

An approximation of how maroon may look with protanopia, deuteranopia and tritanopia (simulated with Machado, Oliveira and Fernandes, 2009), and with achromatopsia, shown as a gray of the same luminance.

protanopia #332C00deuteranopia #504600tritanopia #8E0003achromatopsia #3C3C3C

Test a whole palette or image in the color blindness simulator.

Using maroon in code

.example {
  color: maroon;                 /* named color */
  background-color: #800000;  /* hex */
  border-color: rgb(128, 0, 0);
}

Frequently asked questions

What is the hex code for maroon?
#800000. CSS also accepts the keyword maroon, which means the same color.
What is maroon in RGB?
rgb(128, 0, 0). In HSL it is hsl(0, 100%, 25%), and in OKLCH oklch(37.67% 0.1546 29.23).
What text color goes on maroon?
White text has the higher contrast on #800000: 10.95:1, which meets AAA for all text. Black text reaches 1.92:1.
What is the closest Tailwind color to maroon?
In Tailwind CSS v4 it is red-900 (#82181A), and in v3 red-900 (#7F1D1D). For the exact color, use an arbitrary value such as bg-[#800000].
How do I make maroon transparent?
Add an alpha value. Half-transparent maroon is #80000080 as 8-digit HEX (80 is 128 out of 255) or rgb(128 0 0 / 50%).