#8A1F31#8A1F31

#8A1F31 is a dark, vivid red. Relative luminance 0.066; OKLCH L 42.2% C 0.141 H 16.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#8A1F31
RGBrgb(138, 31, 49)
HSLhsl(350, 63%, 33%)
HSVhsv(350, 78%, 54%)
CMYKcmyk(0%, 77.5%, 64.5%, 45.9%)
CIE-LABlab(30.89, 45.36, 16.82)
CIE-LCHlch(30.89, 48.38, 20.34°)
OKLaboklab(42.2% 0.1354 0.0406)
OKLCHoklch(42.2% 0.141 16.7)
XYZxyz(11.5268, 6.6067, 3.5734)
Luminance0.0660 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F31 #1F8A78
analogous
#8A1F66 #8A1F31 #8A431F
triadic
#8A1F31 #318A1F #1F318A
tetradic
#8A1F31 #668A1F #1F8A78 #431F8A
square
#8A1F31 #668A1F #1F8A78 #431F8A
split-complementary
#8A1F31 #1F8A43 #1F668A
monochromatic
#26090E #58141F #8A1F31 #BC2A43 #D74C64

Accessibility & contrast

On white

9.05
#8A1F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#8A1F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F31
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F31#FFFFFF#000000##FFFFFF
##8A1F311.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3A31
Deuteranopia (green-blind)
#58512E
Tritanopia (blue-blind)
#980027
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a1f31;
/* rgb */ color: rgb(138, 31, 49);
/* oklch */ color: oklch(42.2% 0.141 16.7);
Tailwind
colors: {
  custom: {
    50: '#b36568',
    500: '#8a1f31',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f31;
$custom-light: #b36568;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f31",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 49
  },
  "hsl": {
    "h": 349.907,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.422,
    "c": 0.14141,
    "h": 16.7
  },
  "luminance": 0.06605
}

Semantic roles & 50–950 ramp

primary
#8A1F31
secondary
#4BBAA7
accent
#E6CB41
background
#FBF6F6
surface
#F7EBEB
border
#D0C6C6
text
#120606
muted
#817A7A

Preview Lab

Preview with #8A1F31

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

Preview Lab → · Contrast checker → · Palette generator →

#8A1F31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva