#8A1F2F#8A1F2F

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

Color values

HEX#8A1F2F
RGBrgb(138, 31, 47)
HSLhsl(351, 63%, 33%)
HSVhsv(351, 78%, 54%)
CMYKcmyk(0%, 77.5%, 65.9%, 45.9%)
CIE-LABlab(30.86, 45.23, 18.08)
CIE-LCHlch(30.86, 48.71, 21.78°)
OKLaboklab(42.16% 0.1346 0.0433)
OKLCHoklch(42.16% 0.141 17.8)
XYZxyz(11.4855, 6.5902, 3.3560)
Luminance0.0659 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F2F #1F8A7A
analogous
#8A1F64 #8A1F2F #8A441F
triadic
#8A1F2F #2F8A1F #1F2F8A
tetradic
#8A1F2F #648A1F #1F8A7A #441F8A
square
#8A1F2F #648A1F #1F8A7A #441F8A
split-complementary
#8A1F2F #1F8A44 #1F648A
monochromatic
#26090D #58141E #8A1F2F #BC2A40 #D74C61

Accessibility & contrast

On white

9.06
#8A1F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F2F
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F2F#FFFFFF#000000##FFFFFF
##8A1F2F1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3A2F
Deuteranopia (green-blind)
#58512C
Tritanopia (blue-blind)
#980026
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a1f2f;
/* rgb */ color: rgb(138, 31, 47);
/* oklch */ color: oklch(42.2% 0.141 17.8);
Tailwind
colors: {
  custom: {
    50: '#b36567',
    500: '#8a1f2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f2f;
$custom-light: #b36567;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f2f",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 47
  },
  "hsl": {
    "h": 351.028,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42158,
    "c": 0.14142,
    "h": 17.8
  },
  "luminance": 0.06588
}

Semantic roles & 50–950 ramp

primary
#8A1F2F
secondary
#4BBAA9
accent
#E6CE41
background
#FBF6F6
surface
#F7EBEB
border
#D0C6C6
text
#120606
muted
#817A7A

Preview Lab

Preview with #8A1F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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