#871F31#871F31

#871F31 is a dark, vivid red. Relative luminance 0.064; OKLCH L 41.6% C 0.138 H 16.2°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#871F31
RGBrgb(135, 31, 49)
HSLhsl(350, 63%, 33%)
HSVhsv(350, 77%, 53%)
CMYKcmyk(0%, 77%, 63.7%, 47.1%)
CIE-LABlab(30.29, 44.41, 15.91)
CIE-LCHlch(30.29, 47.18, 19.71°)
OKLaboklab(41.64% 0.1328 0.0386)
OKLCHoklch(41.64% 0.138 16.2)
XYZxyz(11.0372, 6.3542, 3.5505)
Luminance0.0635 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F31 #1F8775
analogous
#871F65 #871F31 #87411F
triadic
#871F31 #31871F #1F3187
tetradic
#871F31 #65871F #1F8775 #411F87
square
#871F31 #65871F #1F8775 #411F87
split-complementary
#871F31 #1F8741 #1F6587
monochromatic
#23080D #55141F #871F31 #B92A43 #D64B63

Accessibility & contrast

On white

9.25
#871F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#871F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F31
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F31#FFFFFF#000000##FFFFFF
##871F311.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3931
Deuteranopia (green-blind)
#564F2E
Tritanopia (blue-blind)
#940027
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #871f31;
/* rgb */ color: rgb(135, 31, 49);
/* oklch */ color: oklch(41.6% 0.138 16.2);
Tailwind
colors: {
  custom: {
    50: '#b06468',
    500: '#871f31',
    950: '#000000',
  },
}
SCSS
$custom: #871f31;
$custom-light: #b06468;
$custom-dark: #000000;
JSON
{
  "hex": "#871f31",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 49
  },
  "hsl": {
    "h": 349.615,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41642,
    "c": 0.13833,
    "h": 16.2
  },
  "luminance": 0.06353
}

Semantic roles & 50–950 ramp

primary
#871F31
secondary
#4AB8A5
accent
#E6C942
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#120606
muted
#817A7A

Preview Lab

Preview with #871F31

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#871F31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva