#B31E17#B31E17

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

Color values

HEX#B31E17
RGBrgb(179, 30, 23)
HSLhsl(3, 77%, 40%)
HSVhsv(3, 87%, 70%)
CMYKcmyk(0%, 83.2%, 87.2%, 29.8%)
CIE-LABlab(38.86, 56.97, 43.26)
CIE-LCHlch(38.86, 71.53, 37.21°)
OKLaboklab(49.49% 0.1615 0.089)
OKLCHoklch(49.49% 0.184 28.8)
XYZxyz(19.2118, 10.5773, 1.8405)
Luminance0.1057 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31E17 #17ACB3
analogous
#B3175E #B31E17 #B36C17
triadic
#B31E17 #17B31E #1E17B3
tetradic
#B31E17 #5EB317 #17ACB3 #6C17B3
square
#B31E17 #5EB317 #17ACB3 #6C17B3
split-complementary
#B31E17 #17B36C #175EB3
monochromatic
#470C09 #7D1510 #B31E17 #E32D24 #EA615B

Accessibility & contrast

On white

6.74
#B31E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#B31E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31E17
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31E17#FFFFFF#000000##FFFFFF
##B31E171.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31e17;
/* rgb */ color: rgb(179, 30, 23);
/* oklch */ color: oklch(49.5% 0.184 28.8);
Tailwind
colors: {
  custom: {
    50: '#d46a57',
    500: '#b31e17',
    950: '#000000',
  },
}
SCSS
$custom: #b31e17;
$custom-light: #d46a57;
$custom-dark: #000000;
JSON
{
  "hex": "#b31e17",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 23
  },
  "hsl": {
    "h": 2.692,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49492,
    "c": 0.18438,
    "h": 28.8
  },
  "luminance": 0.10574
}

Semantic roles & 50–950 ramp

primary
#B31E17
secondary
#58C8CD
accent
#EBF434
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160703
muted
#847A78

Preview Lab

Preview with #B31E17

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

Preview Lab → · Contrast checker → · Palette generator →

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