#8A1F2A#8A1F2A

#8A1F2A is a dark, vivid red. Relative luminance 0.066; OKLCH L 42.1% C 0.142 H 20.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#8A1F2A
RGBrgb(138, 31, 42)
HSLhsl(354, 63%, 33%)
HSVhsv(354, 78%, 54%)
CMYKcmyk(0%, 77.5%, 69.6%, 45.9%)
CIE-LABlab(30.76, 44.94, 21.21)
CIE-LCHlch(30.76, 49.69, 25.27°)
OKLaboklab(42.06% 0.1326 0.0498)
OKLCHoklch(42.06% 0.142 20.6)
XYZxyz(11.3904, 6.5521, 2.8550)
Luminance0.0655 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F2A #1F8A7F
analogous
#8A1F5F #8A1F2A #8A491F
triadic
#8A1F2A #2A8A1F #1F2A8A
tetradic
#8A1F2A #5F8A1F #1F8A7F #491F8A
square
#8A1F2A #5F8A1F #1F8A7F #491F8A
split-complementary
#8A1F2A #1F8A49 #1F5F8A
monochromatic
#26090C #58141B #8A1F2A #BC2A39 #D74C5B

Accessibility & contrast

On white

9.09
#8A1F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#8A1F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F2A
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F2A#FFFFFF#000000##FFFFFF
##8A1F2A1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3A2A
Deuteranopia (green-blind)
#595127
Tritanopia (blue-blind)
#980024
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8a1f2a;
/* rgb */ color: rgb(138, 31, 42);
/* oklch */ color: oklch(42.1% 0.142 20.6);
Tailwind
colors: {
  custom: {
    50: '#b36563',
    500: '#8a1f2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f2a;
$custom-light: #b36563;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f2a",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 42
  },
  "hsl": {
    "h": 353.832,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42062,
    "c": 0.1416,
    "h": 20.6
  },
  "luminance": 0.0655
}

Semantic roles & 50–950 ramp

primary
#8A1F2A
secondary
#4BBAAE
accent
#E6D541
background
#FBF6F5
surface
#F7EBEA
border
#D0C6C6
text
#120605
muted
#817A79

Preview Lab

Preview with #8A1F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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