Dark red
Dark red is a dark, vivid color from the red family. Hex code #8B0000.
Color codes
- CSS name
darkred - HEX
#8B0000 - RGB
rgb(139 0 0) - HSL
hsl(0 100% 27%) - HSB / HSV
hsb(0, 100%, 55%) - OKLCH
oklch(40% 0.164 29.2) - CMYK
cmyk(0%, 100%, 100%, 45%)
White text
10.01:1 · passes WCAG AAA
Black text
2.09:1 · fails WCAG
Shades
Complementary
Analogous
Triadic
About this color
Dark red in CSS and design
Dark red is a dark, vivid color from the red family. Dark red is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.
Use it in CSS by name or by any of its codes; these all give the same color:
color: darkred;
color: #8B0000;
color: rgb(139 0 0);
color: hsl(0 100% 27%);For text on dark red, white reads best. Check other combinations with the contrast checker, or browse all CSS color names.
More tools
Work with this color
- Color picker and converterPick a color and get HEX, RGB, HSL, HSB, CMYK and OKLCH, plus shades and harmonies.
- Contrast checkerCheck text and background colors against WCAG AA and AAA, and fix failing ones.
- CSS color namesAll 148 named colors with hex codes, shades, contrast and matching palettes.
- Palette generatorBuild a color palette from harmony rules, with shades and CSS variables.
Frequently asked questions
What is the hex code for dark red?
#8B0000. In CSS you can also use the keyword darkred, which works in every browser.
What is dark red in RGB and HSL?
In RGB it is rgb(139 0 0), in HSL hsl(0 100% 27%). For print, cmyk(0%, 100%, 100%, 45%) is a starting point, but CMYK depends on paper and ink, so check with your printer.
Should I use black or white text on dark red?
White text works better: it has a contrast ratio of 10.01:1 and passes WCAG AAA. Black text reaches 2.09:1.
Which colors go with dark red?
Its complementary color is #0F515A, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #801345 and #693A0B. The palette generator builds more combinations.