#B31B18#B31B18

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

Color values

HEX#B31B18
RGBrgb(179, 27, 24)
HSLhsl(1, 76%, 40%)
HSVhsv(1, 87%, 70%)
CMYKcmyk(0%, 84.9%, 86.6%, 29.8%)
CIE-LABlab(38.62, 57.71, 42.56)
CIE-LCHlch(38.62, 71.71, 36.41°)
OKLaboklab(49.31% 0.164 0.0878)
OKLCHoklch(49.31% 0.186 28.2)
XYZxyz(19.1497, 10.4367, 1.8702)
Luminance0.1043 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B18 #18B0B3
analogous
#B31863 #B31B18 #B36818
triadic
#B31B18 #18B31B #1B18B3
tetradic
#B31B18 #63B318 #18B0B3 #6818B3
square
#B31B18 #63B318 #18B0B3 #6818B3
split-complementary
#B31B18 #18B368 #1863B3
monochromatic
#470B0A #7D1311 #B31B18 #E22A26 #E95F5C

Accessibility & contrast

On white

6.80
#B31B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31B18
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B18#FFFFFF#000000##FFFFFF
##B31B181.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4615
Deuteranopia (green-blind)
#73660D
Tritanopia (blue-blind)
#C6001D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #b31b18;
/* rgb */ color: rgb(179, 27, 24);
/* oklch */ color: oklch(49.3% 0.186 28.2);
Tailwind
colors: {
  custom: {
    50: '#d46a57',
    500: '#b31b18',
    950: '#000000',
  },
}
SCSS
$custom: #b31b18;
$custom-light: #d46a57;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b18",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 24
  },
  "hsl": {
    "h": 1.161,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49313,
    "c": 0.18601,
    "h": 28.2
  },
  "luminance": 0.10434
}

Semantic roles & 50–950 ramp

primary
#B31B18
secondary
#5ACBCD
accent
#EFF335
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160703
muted
#847A78

Preview Lab

Preview with #B31B18

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

Preview Lab → · Contrast checker → · Palette generator →

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