#8A1F18#8A1F18

#8A1F18 is a dark, vivid red. Relative luminance 0.064; OKLCH L 41.8% C 0.144 H 28.7°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#8A1F18
RGBrgb(138, 31, 24)
HSLhsl(4, 70%, 32%)
HSVhsv(4, 83%, 54%)
CMYKcmyk(0%, 77.5%, 82.6%, 45.9%)
CIE-LABlab(30.52, 44.14, 32.03)
CIE-LCHlch(30.52, 54.54, 35.96°)
OKLaboklab(41.81% 0.126 0.069)
OKLCHoklch(41.81% 0.144 28.7)
XYZxyz(11.1374, 6.4510, 1.5227)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F18 #18838A
analogous
#8A184A #8A1F18 #8A5818
triadic
#8A1F18 #188A1F #1F188A
tetradic
#8A1F18 #4A8A18 #18838A #58188A
square
#8A1F18 #4A8A18 #18838A #58188A
split-complementary
#8A1F18 #188A58 #184A8A
monochromatic
#220806 #56130F #8A1F18 #BE2B21 #DE493F

Accessibility & contrast

On white

9.17
#8A1F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#8A1F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F18
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F18#FFFFFF#000000##FFFFFF
##8A1F181.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403916
Deuteranopia (green-blind)
#5A5013
Tritanopia (blue-blind)
#99001F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8a1f18;
/* rgb */ color: rgb(138, 31, 24);
/* oklch */ color: oklch(41.8% 0.144 28.7);
Tailwind
colors: {
  custom: {
    50: '#b56456',
    500: '#8a1f18',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f18;
$custom-light: #b56456;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f18",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 24
  },
  "hsl": {
    "h": 3.684,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.41805,
    "c": 0.14364,
    "h": 28.7
  },
  "luminance": 0.06449
}

Semantic roles & 50–950 ramp

primary
#8A1F18
secondary
#40B6BD
accent
#E2ED3B
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8A1F18

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

Preview Lab → · Contrast checker → · Palette generator →

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