#B31F18#B31F18

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

Color values

HEX#B31F18
RGBrgb(179, 31, 24)
HSLhsl(3, 76%, 40%)
HSVhsv(3, 87%, 70%)
CMYKcmyk(0%, 82.7%, 86.6%, 29.8%)
CIE-LABlab(38.95, 56.74, 42.85)
CIE-LCHlch(38.95, 71.10, 37.06°)
OKLaboklab(49.57% 0.161 0.0885)
OKLCHoklch(49.57% 0.184 28.8)
XYZxyz(19.2477, 10.6328, 1.9029)
Luminance0.1063 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F18 #18ACB3
analogous
#B3185E #B31F18 #B36D18
triadic
#B31F18 #18B31F #1F18B3
tetradic
#B31F18 #5EB318 #18ACB3 #6D18B3
square
#B31F18 #5EB318 #18ACB3 #6D18B3
split-complementary
#B31F18 #18B36D #185EB3
monochromatic
#470C0A #7D1611 #B31F18 #E22F26 #E9635C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31F18#FFFFFF#000000##FFFFFF
##B31F181.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)
#504714
Deuteranopia (green-blind)
#74670D
Tritanopia (blue-blind)
#C60020
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #b31f18;
/* rgb */ color: rgb(179, 31, 24);
/* oklch */ color: oklch(49.6% 0.184 28.8);
Tailwind
colors: {
  custom: {
    50: '#d46b57',
    500: '#b31f18',
    950: '#000000',
  },
}
SCSS
$custom: #b31f18;
$custom-light: #d46b57;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f18",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 24
  },
  "hsl": {
    "h": 2.71,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49565,
    "c": 0.18368,
    "h": 28.8
  },
  "luminance": 0.1063
}

Semantic roles & 50–950 ramp

primary
#B31F18
secondary
#5AC8CD
accent
#EAF335
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160803
muted
#847A78

Preview Lab

Preview with #B31F18

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

Preview Lab → · Contrast checker → · Palette generator →

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