#B31D17#B31D17

#B31D17 is a mid, vivid red. Relative luminance 0.105; OKLCH L 49.4% C 0.185 H 28.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#B31D17
RGBrgb(179, 29, 23)
HSLhsl(2, 77%, 40%)
HSVhsv(2, 87%, 70%)
CMYKcmyk(0%, 83.8%, 87.2%, 29.8%)
CIE-LABlab(38.77, 57.22, 43.19)
CIE-LCHlch(38.77, 71.69, 37.04°)
OKLaboklab(49.43% 0.1623 0.0888)
OKLCHoklch(49.43% 0.185 28.7)
XYZxyz(19.1869, 10.5275, 1.8322)
Luminance0.1052 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31D17 #17ADB3
analogous
#B3175F #B31D17 #B36B17
triadic
#B31D17 #17B31D #1D17B3
tetradic
#B31D17 #5FB317 #17ADB3 #6B17B3
square
#B31D17 #5FB317 #17ADB3 #6B17B3
split-complementary
#B31D17 #17B36B #175FB3
monochromatic
#470B09 #7D1410 #B31D17 #E32C24 #EA605B

Accessibility & contrast

On white

6.76
#B31D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#B31D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31D17
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31D17#FFFFFF#000000##FFFFFF
##B31D171.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504713
Deuteranopia (green-blind)
#74670B
Tritanopia (blue-blind)
#C6001E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #b31d17;
/* rgb */ color: rgb(179, 29, 23);
/* oklch */ color: oklch(49.4% 0.185 28.7);
Tailwind
colors: {
  custom: {
    50: '#d46a57',
    500: '#b31d17',
    950: '#000000',
  },
}
SCSS
$custom: #b31d17;
$custom-light: #d46a57;
$custom-dark: #000000;
JSON
{
  "hex": "#b31d17",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 23
  },
  "hsl": {
    "h": 2.308,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49428,
    "c": 0.18497,
    "h": 28.7
  },
  "luminance": 0.10524
}

Semantic roles & 50–950 ramp

primary
#B31D17
secondary
#58C9CD
accent
#ECF434
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160703
muted
#847A78

Preview Lab

Preview with #B31D17

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

Preview Lab → · Contrast checker → · Palette generator →

#B31D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva