#8A1F27#8A1F27

#8A1F27 is a dark, vivid red. Relative luminance 0.065; OKLCH L 42.0% C 0.142 H 22.1°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#8A1F27
RGBrgb(138, 31, 39)
HSLhsl(356, 63%, 33%)
HSVhsv(356, 78%, 54%)
CMYKcmyk(0%, 77.5%, 71.7%, 45.9%)
CIE-LABlab(30.72, 44.78, 23.08)
CIE-LCHlch(30.72, 50.38, 27.27°)
OKLaboklab(42.01% 0.1314 0.0534)
OKLCHoklch(42.01% 0.142 22.1)
XYZxyz(11.3387, 6.5315, 2.5827)
Luminance0.0653 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F27 #1F8A82
analogous
#8A1F5C #8A1F27 #8A4C1F
triadic
#8A1F27 #278A1F #1F278A
tetradic
#8A1F27 #5C8A1F #1F8A82 #4C1F8A
square
#8A1F27 #5C8A1F #1F8A82 #4C1F8A
split-complementary
#8A1F27 #1F8A4C #1F5C8A
monochromatic
#26090B #581419 #8A1F27 #BC2A35 #D74C57

Accessibility & contrast

On white

9.11
#8A1F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F27
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F27#FFFFFF#000000##FFFFFF
##8A1F271.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3A26
Deuteranopia (green-blind)
#595124
Tritanopia (blue-blind)
#980023
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8a1f27;
/* rgb */ color: rgb(138, 31, 39);
/* oklch */ color: oklch(42.0% 0.142 22.1);
Tailwind
colors: {
  custom: {
    50: '#b46461',
    500: '#8a1f27',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f27;
$custom-light: #b46461;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f27",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 39
  },
  "hsl": {
    "h": 355.514,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42009,
    "c": 0.14181,
    "h": 22.1
  },
  "luminance": 0.0653
}

Semantic roles & 50–950 ramp

primary
#8A1F27
secondary
#4BBAB1
accent
#E6DA41
background
#FBF6F5
surface
#F7EBE9
border
#D0C6C5
text
#120605
muted
#817A79

Preview Lab

Preview with #8A1F27

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

Preview Lab → · Contrast checker → · Palette generator →

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