Free Accessible CSS Gradient Generator

← All Colors
#8B0000 Dark Red

Dark Red Hex Code #8B0000

Dark Red is a dark, strong red with the hex code #8B0000. In RGB it is 139, 0, 0, and in HSL it is 0°, 100%, 27%. It is one of the 148 named colors in CSS, so you can write “darkred” instead of the hex code.

HEX
#8B0000
RGB
rgb(139, 0, 0)
HSL
hsl(0, 100%, 27%)
HSV
hsv(0°, 100%, 55%)
CMYK
cmyk(0%, 100%, 100%, 45%)
CSS name
darkred

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Dark Red

On a white background Dark Red has a contrast ratio of 10.01:1 (AAA), and on black 2.10:1 (Fail). White text is the better choice on top of it.

It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.

Red draws attention and signals urgency, which is why it is common for alerts, errors and sale tags. Because people strongly associate it with warnings, use it sparingly for anything that is not an alert.

Shades and tints of Dark Red

Tints mix Dark Red with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Dark Red

These schemes are calculated from Dark Red on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Dark Red is #008B00, close to the named color Green.

Dark Red contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Dark Red scores against white and black.

Contrast of Dark Red with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 10.01:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Black (#000000) 2.10:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Aa White text on Dark Red10.01:1
Aa Black text on Dark Red2.10:1

Dark Red and color blindness

These are approximate previews of how Dark Red can look with the main types of color vision deficiency.

Protanopia #383000

Dark Red changes noticeably.

Deuteranopia #574C00

Dark Red changes noticeably.

Tritanopia #9A0004

Dark Red looks almost the same.

Achromatopsia #424242

Dark Red changes noticeably.

Gradients with Dark Red

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Dark Red to a lighter tint

background: linear-gradient(135deg, #8b0000 0%, #d19999 100%);

Dark Red to its analogous neighbour

background: linear-gradient(135deg, #8b0000 0%, #8b4600 100%);

Dark Red to its complement

background: linear-gradient(135deg, #8b0000 0%, #008b8b 100%);

Colors similar to Dark Red

How each close match differs from Dark Red.

More red colors →

Use Dark Red in code

CSS
.element {
  color: #8b0000;
  background-color: #8b0000;
  border-color: darkred;   /* darkred is a valid CSS color name */
}
CSS variable
:root {
  --color-dark-red: #8b0000;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#8b0000] text-[#8b0000] border-[#8b0000]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-dark-red: #8b0000;
}

Dark Red questions

What is the hex code for Dark Red?

The hex code for Dark Red is #8B0000. In RGB that is rgb(139, 0, 0), and in HSL it is hsl(0, 100%, 27%).

What is the complementary color of Dark Red?

On the RGB (screen) color wheel, the complement of Dark Red is #008B8B, which is close to Dark Cyan. On the artist’s RYB wheel it is #008B00, close to Green.

Should I use white or black text on Dark Red?

White text. It has a contrast ratio of 10.01:1 against Dark Red, which is WCAG AAA. The other option scores 2.10:1.

Is Dark Red accessible as a text color on white?

Yes. Dark Red on white scores 10.01:1, which passes WCAG AA for normal text (4.5:1) and AAA (7:1).

What are darker and lighter shades of Dark Red?

Mixing Dark Red with black gives #6F0000, #530000, #380000, #1C0000 (20% to 80% black). Mixing it with white gives #A23333, #B96666, #D19999, #E8CCCC (20% to 80% white).

More color tools