#B31B21#B31B21

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

Color values

HEX#B31B21
RGBrgb(179, 27, 33)
HSLhsl(358, 74%, 40%)
HSVhsv(358, 85%, 70%)
CMYKcmyk(0%, 84.9%, 81.6%, 29.8%)
CIE-LABlab(38.69, 57.94, 37.85)
CIE-LCHlch(38.69, 69.21, 33.16°)
OKLaboklab(49.39% 0.1664 0.081)
OKLCHoklch(49.39% 0.185 26)
XYZxyz(19.2593, 10.4806, 2.4475)
Luminance0.1048 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B21 #1BB3AD
analogous
#B31B6D #B31B21 #B3611B
triadic
#B31B21 #21B31B #1B21B3
tetradic
#B31B21 #6DB31B #1BB3AD #611BB3
square
#B31B21 #6DB31B #1BB3AD #611BB3
split-complementary
#B31B21 #1BB361 #1B6DB3
monochromatic
#490B0D #7E1317 #B31B21 #DF2C33 #E76166

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31B21#FFFFFF#000000##FFFFFF
##B31B211.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)
#4E461F
Deuteranopia (green-blind)
#736719
Tritanopia (blue-blind)
#C60020
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #b31b21;
/* rgb */ color: rgb(179, 27, 33);
/* oklch */ color: oklch(49.4% 0.185 26.0);
Tailwind
colors: {
  custom: {
    50: '#d46a5d',
    500: '#b31b21',
    950: '#000000',
  },
}
SCSS
$custom: #b31b21;
$custom-light: #d46a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b21",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 33
  },
  "hsl": {
    "h": 357.632,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49394,
    "c": 0.1851,
    "h": 26
  },
  "luminance": 0.10477
}

Semantic roles & 50–950 ramp

primary
#B31B21
secondary
#5ECCC7
accent
#F0E937
background
#FEF6F5
surface
#FCECE9
border
#D5C7C5
text
#160704
muted
#847A79

Preview Lab

Preview with #B31B21

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

Preview Lab → · Contrast checker → · Palette generator →

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