Maroon hex code: #800000, with RGB, CMYK and color code
The maroon hex code is #800000, which is rgb(128, 0, 0). It is the CSS colour 'maroon', a dark red, and also the maroon color code to copy into any design tool. Not sure whether you need maroon or burgundy? A side-by-side table is below.
Reference
Maroon color code in HEX, RGB, HSL, HSV and CMYK
Find the format your tool wants and copy the row. A script produced every value from the single code #800000, so none of it is typed from memory.
The CMYK row is a simple conversion from RGB. Treat it as a starting point for print and ask your printer for a proof.
| Format | Value |
|---|---|
| HEX | #800000 |
| RGB | rgb(128, 0, 0) |
| HSL | hsl(0, 100%, 25%) |
| HSV (hue, saturation, value) | 0, 100%, 50% |
| CMYK (simple conversion) | 0%, 100%, 100%, 50% |
| CSS keyword | maroon |
| Contrast against white | 10.95:1 |
| Contrast against black | 1.92:1 |
In depth
Maroon RGB: rgb(128, 0, 0)
Maroon in RGB has red at 128, and green and blue at 0. Red sits at half of its range, which is why the colour is dark. With no green or blue, there is nothing to shift the hue away from pure red. In HSL that gives hue 0, saturation 100% and lightness 25%.
As fractions from 0 to 1, maroon is 0.502, 0.000, 0.000.
Reference
Copy-ready CSS lines for maroon
All four lines produce the same dark red in a browser.
| Style | CSS line |
|---|---|
| Hex | color: #800000; |
| Hex as a background | background-color: #800000; |
| RGB | color: rgb(128, 0, 0); |
| HSL | color: hsl(0, 100%, 25%); |
| Keyword | color: maroon; |
In depth
Where #800000 comes from
The CSS Color Module Level 4 defines maroon as #800000, and we read that entry in the W3C list on 17 November 2026. Writing color: maroon in a stylesheet gives you this exact colour. The code is half-strength red and nothing else.
Outside CSS, paint, school and sports teams use their own maroons, often a little brown or purple. If a brand guide gives a code, use theirs.
Reference
Maroon or burgundy? Compare the two codes
People mix these up because both are dark reds. The difference is a small amount of blue. Burgundy has no official web code. The table uses #800020, the working value from our burgundy guide.
Look at the contrast row. The two colours measure 1.01:1 against each other. That is almost no difference in brightness. You tell them apart by hue, not by lightness.
| Property | Maroon | Burgundy (#800020) |
|---|---|---|
| HEX | #800000 | #800020 |
| RGB | rgb(128, 0, 0) | rgb(128, 0, 32) |
| HSL | hsl(0, 100%, 25%) | hsl(345, 100%, 25%) |
| Blue channel | 0 | 32 |
| Contrast against white | 10.95:1 | 10.83:1 |
| Contrast against black | 1.92:1 | 1.94:1 |
| CSS keyword | maroon | none |
Reference
Eight maroon variants with their hex codes
Five of these codes are a computed ladder. Each keeps hue 0 and saturation 100% and changes only the lightness. The other three are CSS named colours that sit near maroon. The HSL column is read back from the rounded hex.
| Variant | Method | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | Computed: hue 0, saturation 100%, lightness 15% | #4C0000 | rgb(76, 0, 0) | hsl(0, 100%, 15%) |
| 2 | Computed: hue 0, saturation 100%, lightness 20% | #660000 | rgb(102, 0, 0) | hsl(0, 100%, 20%) |
| 3 | Computed: hue 0, saturation 100%, lightness 30% | #990000 | rgb(153, 0, 0) | hsl(0, 100%, 30%) |
| 4 | Computed: hue 0, saturation 100%, lightness 35% | #B20000 | rgb(178, 0, 0) | hsl(0, 100%, 35%) |
| 5 | Computed: hue 0, saturation 100%, lightness 40% | #CC0000 | rgb(204, 0, 0) | hsl(0, 100%, 40%) |
| 6 | CSS named colour: darkred | #8B0000 | rgb(139, 0, 0) | hsl(0, 100%, 27%) |
| 7 | CSS named colour: brown | #A52A2A | rgb(165, 42, 42) | hsl(0, 59%, 41%) |
| 8 | CSS named colour: firebrick | #B22222 | rgb(178, 34, 34) | hsl(0, 68%, 42%) |
Reference
Maroon contrast: strong on light pages, weak on dark ones
Under WCAG 2.1, body text needs 4.5:1, and large text plus UI parts need 3:1. Maroon passes on white. It fails on black.
White on #800000 is 10.95:1, so white lettering is safe. Black on maroon is 1.92:1, which is unreadable.
| Colour | HEX | On white | White text result | On black | Black text result |
|---|---|---|---|---|---|
| Maroon (main) | #800000 | 10.95:1 | Passes 4.5:1 | 1.92:1 | Fails 3:1 |
| Ladder, lightness 15% | #4C0000 | 16.06:1 | Passes 4.5:1 | 1.31:1 | Fails 3:1 |
| Ladder, lightness 20% | #660000 | 13.42:1 | Passes 4.5:1 | 1.56:1 | Fails 3:1 |
| Ladder, lightness 30% | #990000 | 8.92:1 | Passes 4.5:1 | 2.35:1 | Fails 3:1 |
| Ladder, lightness 35% | #B20000 | 7.26:1 | Passes 4.5:1 | 2.89:1 | Fails 3:1 |
| Ladder, lightness 40% | #CC0000 | 5.89:1 | Passes 4.5:1 | 3.57:1 | Large text and UI parts only (3:1) |
| Darkred | #8B0000 | 10.01:1 | Passes 4.5:1 | 2.1:1 | Fails 3:1 |
| Brown | #A52A2A | 7.08:1 | Passes 4.5:1 | 2.96:1 | Fails 3:1 |
| Firebrick | #B22222 | 6.68:1 | Passes 4.5:1 | 3.14:1 | Large text and UI parts only (3:1) |
Reference
Maroon text on a pale page
Maroon also works the other way round, as a text or heading colour on a light background. The ratios below were measured with #800000 as the text colour.
| Background | HEX | Maroon text on it | Result |
|---|---|---|---|
| White | #FFFFFF | 10.95:1 | Passes 4.5:1 |
| Beige | #F5F5DC | 9.89:1 | Passes 4.5:1 |
| Lavender | #E6E6FA | 8.9:1 | Passes 4.5:1 |
| Linen | #FAF0E6 | 9.74:1 | Passes 4.5:1 |
Reference
Colours that go with maroon: four computed palettes
Each row turns #800000 around the HSL wheel and keeps saturation at 100% and lightness at 25%. All partners are equally dark, so lighten one for a background and check text contrast.
| Scheme | Hue rotation | Codes |
|---|---|---|
| Complementary | 180 degrees | #008080 |
| Analogous | +30 degrees, then -30 degrees | #804000, #800040 |
| Triadic | +120 degrees, then +240 degrees | #008000, #000080 |
| Split-complementary | +150 degrees, then +210 degrees | #008040, #004080 |
Checklist
Where designers use maroon
- University and team colours, where a deep red looks serious on a jersey or a banner.
- Headings and links on cream or white pages.
- Buttons that carry white labels.
- Printed menus and invitations. Proof the colour first, because the CMYK numbers here are rough.
Step by step
Try it now: test your maroon or sample one from an image
- 1
Open the HEX to RGB converter and type #800000, or any variant above. It reads 3 or 6 digit hex, rgb() and hsl(), has a colour picker and shows contrast on white and black.
- 2
Open the colour palette from image tool and load a photo, for example a jersey or a brick wall. It finds 2 to 12 dominant colours and lets you click one pixel for an exact value. The photo stays on your device.
- 3
Paste a sampled colour into the converter. If its red is near 128 and green and blue are near 0, it is close to maroon.
- Limit: photo lighting changes colour, so a sample may not match the real object.
In depth
How this guide was made
The maroon code was read from the W3C CSS Color Module Level 4 list of named colours on 17 November 2026, as were the three CSS names in the variants table. All other numbers were computed from those codes by a Python script, including formats, contrast and palettes. The burgundy value is a working code, not a standard.
The text was drafted with AI assistance and reviewed before publishing.
In pictures
See it

What is the maroon color code?
The maroon color code is #800000, which is rgb(128, 0, 0) and hsl(0, 100%, 25%). It is the value of the CSS named colour maroon, a dark red.
Which hex value does maroon have?
The maroon color hex is #800000. Short form: maroon hex #800000. Sports and school guides sometimes use other maroons, so confirm the code before you match a brand.
How is maroon written in RGB?
Maroon is rgb(128, 0, 0). Red is 128 and green and blue are zero. On the 0 to 1 scale that is 0.502, 0.000, 0.000.
Is maroon the same as burgundy?
No. Maroon is #800000 and has a CSS name. Burgundy has no official code, and the usual working value, #800020, adds a little blue. See the burgundy hex code guide for its own values.
Is white lettering on maroon readable?
Yes. White on #800000 measures 10.95:1, far above the 4.5:1 minimum for normal text. Black on maroon is 1.92:1 and fails.
Is maroon a valid CSS color word?
Yes. color: maroon in CSS gives #800000. If you want a slightly different dark red, use a hex code instead.
Do it yourself
Tools used in this guide
Check the numbers
Sources and further reading
Ready to try it?
Use the free tool or the full photo editor. Everything stays on your device.