#B31B17#B31B17

#B31B17 is a mid, vivid red. Relative luminance 0.104; OKLCH L 49.3% C 0.186 H 28.4°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#B31B17
RGBrgb(179, 27, 23)
HSLhsl(2, 77%, 40%)
HSVhsv(2, 87%, 70%)
CMYKcmyk(0%, 84.9%, 87.2%, 29.8%)
CIE-LABlab(38.61, 57.69, 43.05)
CIE-LCHlch(38.61, 71.98, 36.73°)
OKLaboklab(49.31% 0.1637 0.0885)
OKLCHoklch(49.31% 0.186 28.4)
XYZxyz(19.1395, 10.4326, 1.8164)
Luminance0.1043 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B17 #17AFB3
analogous
#B31761 #B31B17 #B36917
triadic
#B31B17 #17B31B #1B17B3
tetradic
#B31B17 #61B317 #17AFB3 #6917B3
square
#B31B17 #61B317 #17AFB3 #6917B3
split-complementary
#B31B17 #17B369 #1761B3
monochromatic
#470B09 #7D1310 #B31B17 #E32924 #EA5E5B

Accessibility & contrast

On white

6.81
#B31B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#B31B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31B17
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B17#FFFFFF#000000##FFFFFF
##B31B171.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31b17;
/* rgb */ color: rgb(179, 27, 23);
/* oklch */ color: oklch(49.3% 0.186 28.4);
Tailwind
colors: {
  custom: {
    50: '#d46a57',
    500: '#b31b17',
    950: '#000000',
  },
}
SCSS
$custom: #b31b17;
$custom-light: #d46a57;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b17",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 23
  },
  "hsl": {
    "h": 1.538,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49306,
    "c": 0.18611,
    "h": 28.4
  },
  "luminance": 0.10429
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31B17

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

Preview Lab → · Contrast checker → · Palette generator →

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