#8A231F#8A231F

#8A231F is a dark, vivid red. Relative luminance 0.067; OKLCH L 42.3% C 0.139 H 27.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#8A231F
RGBrgb(138, 35, 31)
HSLhsl(2, 63%, 33%)
HSVhsv(2, 78%, 54%)
CMYKcmyk(0%, 74.6%, 77.5%, 45.9%)
CIE-LABlab(31.13, 42.94, 28.54)
CIE-LCHlch(31.13, 51.56, 33.61°)
OKLaboklab(42.28% 0.1237 0.0636)
OKLCHoklch(42.28% 0.139 27.2)
XYZxyz(11.3309, 6.7060, 1.9938)
Luminance0.0670 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A231F #1F868A
analogous
#8A1F50 #8A231F #8A581F
triadic
#8A231F #1F8A23 #231F8A
tetradic
#8A231F #508A1F #1F868A #581F8A
square
#8A231F #508A1F #1F868A #581F8A
split-complementary
#8A231F #1F8A58 #1F508A
monochromatic
#260A09 #581614 #8A231F #BC302A #D7524C

Accessibility & contrast

On white

8.97
#8A231F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#8A231F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A231F
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A231F#FFFFFF#000000##FFFFFF
##8A231F1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413B1D
Deuteranopia (green-blind)
#5B511B
Tritanopia (blue-blind)
#980023
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a231f;
/* rgb */ color: rgb(138, 35, 31);
/* oklch */ color: oklch(42.3% 0.139 27.2);
Tailwind
colors: {
  custom: {
    50: '#b4665b',
    500: '#8a231f',
    950: '#000000',
  },
}
SCSS
$custom: #8a231f;
$custom-light: #b4665b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a231f",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 31
  },
  "hsl": {
    "h": 2.243,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42281,
    "c": 0.13911,
    "h": 27.2
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#8A231F
secondary
#4BB5BA
accent
#E0E641
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#120604
muted
#817A79

Preview Lab

Preview with #8A231F

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

Preview Lab → · Contrast checker → · Palette generator →

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