#B31C17#B31C17

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

Color values

HEX#B31C17
RGBrgb(179, 28, 23)
HSLhsl(2, 77%, 40%)
HSVhsv(2, 87%, 70%)
CMYKcmyk(0%, 84.4%, 87.2%, 29.8%)
CIE-LABlab(38.69, 57.46, 43.12)
CIE-LCHlch(38.69, 71.83, 36.88°)
OKLaboklab(49.37% 0.163 0.0886)
OKLCHoklch(49.37% 0.186 28.5)
XYZxyz(19.1628, 10.4793, 1.8242)
Luminance0.1048 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C17 #17AEB3
analogous
#B31760 #B31C17 #B36A17
triadic
#B31C17 #17B31C #1C17B3
tetradic
#B31C17 #60B317 #17AEB3 #6A17B3
square
#B31C17 #60B317 #17AEB3 #6A17B3
split-complementary
#B31C17 #17B36A #1760B3
monochromatic
#470B09 #7D1410 #B31C17 #E32A24 #EA5F5B

Accessibility & contrast

On white

6.78
#B31C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31C17
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C17#FFFFFF#000000##FFFFFF
##B31C171.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31c17;
/* rgb */ color: rgb(179, 28, 23);
/* oklch */ color: oklch(49.4% 0.186 28.5);
Tailwind
colors: {
  custom: {
    50: '#d46a57',
    500: '#b31c17',
    950: '#000000',
  },
}
SCSS
$custom: #b31c17;
$custom-light: #d46a57;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c17",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 23
  },
  "hsl": {
    "h": 1.923,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49366,
    "c": 0.18555,
    "h": 28.5
  },
  "luminance": 0.10476
}

Semantic roles & 50–950 ramp

primary
#B31C17
secondary
#58CACD
accent
#EEF434
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160703
muted
#847A78

Preview Lab

Preview with #B31C17

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

Preview Lab → · Contrast checker → · Palette generator →

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