#8A1F1F#8A1F1F

#8A1F1F is a dark, vivid red. Relative luminance 0.065; OKLCH L 41.9% C 0.143 H 25.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#8A1F1F
RGBrgb(138, 31, 31)
HSLhsl(0, 63%, 33%)
HSVhsv(0, 78%, 54%)
CMYKcmyk(0%, 77.5%, 77.5%, 45.9%)
CIE-LABlab(30.60, 44.41, 27.96)
CIE-LCHlch(30.60, 52.47, 32.20°)
OKLaboklab(41.89% 0.1283 0.0623)
OKLCHoklch(41.89% 0.143 25.9)
XYZxyz(11.2199, 6.4839, 1.9568)
Luminance0.0648 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F1F #1F8A8A
analogous
#8A1F54 #8A1F1F #8A541F
triadic
#8A1F1F #1F8A1F #1F1F8A
tetradic
#8A1F1F #548A1F #1F8A8A #541F8A
square
#8A1F1F #548A1F #1F8A8A #541F8A
split-complementary
#8A1F1F #1F8A54 #1F548A
monochromatic
#260909 #581414 #8A1F1F #BC2A2A #D74C4C

Accessibility & contrast

On white

9.14
#8A1F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#8A1F1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F1F
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F1F#FFFFFF#000000##FFFFFF
##8A1F1F1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F391E
Deuteranopia (green-blind)
#5A501B
Tritanopia (blue-blind)
#980021
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8a1f1f;
/* rgb */ color: rgb(138, 31, 31);
/* oklch */ color: oklch(41.9% 0.143 25.9);
Tailwind
colors: {
  custom: {
    50: '#b4645b',
    500: '#8a1f1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f1f;
$custom-light: #b4645b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f1f",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 31
  },
  "hsl": {
    "h": 0,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41889,
    "c": 0.14268,
    "h": 25.9
  },
  "luminance": 0.06482
}

Semantic roles & 50–950 ramp

primary
#8A1F1F
secondary
#4BBABA
accent
#E6E641
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130604
muted
#827A79

Preview Lab

Preview with #8A1F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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