#B31B1A#B31B1A

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

Color values

HEX#B31B1A
RGBrgb(179, 27, 26)
HSLhsl(0, 75%, 40%)
HSVhsv(0, 85%, 70%)
CMYKcmyk(0%, 84.9%, 85.5%, 29.8%)
CIE-LABlab(38.63, 57.75, 41.56)
CIE-LCHlch(38.63, 71.15, 35.74°)
OKLaboklab(49.33% 0.1645 0.0865)
OKLCHoklch(49.33% 0.186 27.7)
XYZxyz(19.1712, 10.4454, 1.9838)
Luminance0.1044 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B1A #1AB2B3
analogous
#B31A66 #B31B1A #B3671A
triadic
#B31B1A #1AB31B #1B1AB3
tetradic
#B31B1A #66B31A #1AB2B3 #671AB3
square
#B31B1A #66B31A #1AB2B3 #671AB3
split-complementary
#B31B1A #1AB367 #1A66B3
monochromatic
#480B0A #7E1312 #B31B1A #E02B2A #E86060

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31B1A#FFFFFF#000000##FFFFFF
##B31B1A1.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)
#4F4617
Deuteranopia (green-blind)
#736610
Tritanopia (blue-blind)
#C6001E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #b31b1a;
/* rgb */ color: rgb(179, 27, 26);
/* oklch */ color: oklch(49.3% 0.186 27.7);
Tailwind
colors: {
  custom: {
    50: '#d46a58',
    500: '#b31b1a',
    950: '#000000',
  },
}
SCSS
$custom: #b31b1a;
$custom-light: #d46a58;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b1a",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 26
  },
  "hsl": {
    "h": 0.392,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49329,
    "c": 0.18582,
    "h": 27.7
  },
  "luminance": 0.10442
}

Semantic roles & 50–950 ramp

primary
#B31B1A
secondary
#5DCBCC
accent
#F0F137
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160703
muted
#847A78

Preview Lab

Preview with #B31B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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