Inspect DarkRed (#8B0000) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
DarkRed
#8B0000
White text reads best on this background, at 10.01:1.
DarkRed is one of the 148 CSS named colors, and resolves to #8B0000 in every browser. In numbers that is rgb(139, 0, 0) and hsl(0, 100%, 27%). Perceptually it is a dark, moderately saturated color: OKLCH puts its lightness at 40% and its chroma at 0.164. It sits in the reds at 29 degrees of OKLCH hue, and reads as a warm color.
White text clears WCAG AA on a DarkRed background at 10.01:1, and AAA as well. That combination of lightness and chroma makes it a workable mid-tone, the kind of value that lands in the middle of a shade scale.
The closest CSS named colors to DarkRed, measured with CIEDE2000, are Maroon (#800000), Brown (#A52A2A), FireBrick (#B22222). If DarkRed is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#8B0000
RGB
rgb(139, 0, 0)
HSL
hsl(0, 100%, 27%)
HWB
hwb(0 0% 45%)
CMYK
cmyk(0%, 100%, 100%, 45%)
LAB
lab(28.76 51.45 42.8)
LCH
lch(28.76 66.93 39.75)
OKLCH
oklch(39.99% 0.1641 29.23)
WCAG asks for 4.5:1 between body text and its background. On #8B0000 white text measures 10.01:1 and black text 2.1:1, so white clears it and black does not.
White text on DarkRed
WCAG 2.2
10.01:1
APCA
Lc 95
Passes AA body text
Passes AAA body text
Passes AA large text
Black text on DarkRed
WCAG 2.2
2.1:1
APCA
Lc 13
Fails AA body text
Fails AAA body text
Fails AA large text
Check DarkRed against any other color in the contrast checker.
DarkRed sits at 40% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #FFF6F5 and down to #140000, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#B33529
20% lighter
#DB5B4C
40% lighter
#FF8473
60% lighter
#FFC1B7
80% lighter
#FFF6F5
100% lighter
#710000
20% darker
#570000
40% darker
#3F0000
60% darker
#290000
80% darker
#140000
100% darker
Build a full accessible scale from #8B0000 in the shade generator.
Hues rotated around #8B0000 in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.
DarkRed sits at 29 degrees. Rotating it a half turn lands on 209 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.
The neighbors of DarkRed at 359 and 59 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
29, 149 and 269 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.
Instead of the complement at 209 degrees, this pair flanks it at 179 and 239. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around DarkRed on the color wheel.
The biggest shift is under protanopia, where #8B0000 reads as #151000, 31.1 CIEDE2000 units away. If DarkRed is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#151000
Deuteranopia
#332700
Tritanopia
#AF0001
Achromatopsia
#1E1E1E
The nearest CSS keywords to #8B0000, ranked by perceptual distance rather than by how close their hex digits happen to look.