#B31B1C#B31B1C

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

Color values

HEX#B31B1C
RGBrgb(179, 27, 28)
HSLhsl(360, 74%, 40%)
HSVhsv(360, 85%, 70%)
CMYKcmyk(0%, 84.9%, 84.4%, 29.8%)
CIE-LABlab(38.65, 57.80, 40.53)
CIE-LCHlch(38.65, 70.60, 35.04°)
OKLaboklab(49.35% 0.165 0.085)
OKLCHoklch(49.35% 0.186 27.3)
XYZxyz(19.1944, 10.4546, 2.1057)
Luminance0.1045 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B1C #1BB3B2
analogous
#B31B68 #B31B1C #B3661B
triadic
#B31B1C #1CB31B #1B1CB3
tetradic
#B31B1C #68B31B #1BB3B2 #661BB3
square
#B31B1C #68B31B #1BB3B2 #661BB3
split-complementary
#B31B1C #1BB366 #1B68B3
monochromatic
#490B0B #7E1314 #B31B1C #DF2C2D #E76162

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31B1C#FFFFFF#000000##FFFFFF
##B31B1C1.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)
#4F4619
Deuteranopia (green-blind)
#736613
Tritanopia (blue-blind)
#C6001E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #b31b1c;
/* rgb */ color: rgb(179, 27, 28);
/* oklch */ color: oklch(49.3% 0.186 27.3);
Tailwind
colors: {
  custom: {
    50: '#d46a5a',
    500: '#b31b1c',
    950: '#000000',
  },
}
SCSS
$custom: #b31b1c;
$custom-light: #d46a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b1c",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 28
  },
  "hsl": {
    "h": 359.605,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49346,
    "c": 0.18561,
    "h": 27.3
  },
  "luminance": 0.10451
}

Semantic roles & 50–950 ramp

primary
#B31B1C
secondary
#5ECCCB
accent
#F0EF37
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160704
muted
#847A79

Preview Lab

Preview with #B31B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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