#B31F17#B31F17

#B31F17 is a mid, vivid red. Relative luminance 0.106; OKLCH L 49.6% C 0.184 H 29.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#B31F17
RGBrgb(179, 31, 23)
HSLhsl(3, 77%, 40%)
HSVhsv(3, 87%, 70%)
CMYKcmyk(0%, 82.7%, 87.2%, 29.8%)
CIE-LABlab(38.95, 56.72, 43.33)
CIE-LCHlch(38.95, 71.38, 37.38°)
OKLaboklab(49.56% 0.1607 0.0891)
OKLCHoklch(49.56% 0.184 29)
XYZxyz(19.2375, 10.6287, 1.8491)
Luminance0.1063 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F17 #17ABB3
analogous
#B3175D #B31F17 #B36D17
triadic
#B31F17 #17B31F #1F17B3
tetradic
#B31F17 #5DB317 #17ABB3 #6D17B3
square
#B31F17 #5DB317 #17ABB3 #6D17B3
split-complementary
#B31F17 #17B36D #175DB3
monochromatic
#470C09 #7D1610 #B31F17 #E32E24 #EA625B

Accessibility & contrast

On white

6.72
#B31F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#B31F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31F17
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F17#FFFFFF#000000##FFFFFF
##B31F171.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514713
Deuteranopia (green-blind)
#74670C
Tritanopia (blue-blind)
#C60020
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #b31f17;
/* rgb */ color: rgb(179, 31, 23);
/* oklch */ color: oklch(49.6% 0.184 29.0);
Tailwind
colors: {
  custom: {
    50: '#d46b57',
    500: '#b31f17',
    950: '#000000',
  },
}
SCSS
$custom: #b31f17;
$custom-light: #d46b57;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f17",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 23
  },
  "hsl": {
    "h": 3.077,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49558,
    "c": 0.18378,
    "h": 29
  },
  "luminance": 0.10626
}

Semantic roles & 50–950 ramp

primary
#B31F17
secondary
#58C7CD
accent
#EAF434
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160703
muted
#847A78

Preview Lab

Preview with #B31F17

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

Preview Lab → · Contrast checker → · Palette generator →

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