#B31A1B#B31A1B

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

Color values

HEX#B31A1B
RGBrgb(179, 26, 27)
HSLhsl(360, 75%, 40%)
HSVhsv(360, 85%, 70%)
CMYKcmyk(0%, 85.5%, 84.9%, 29.8%)
CIE-LABlab(38.56, 58.00, 40.98)
CIE-LCHlch(38.56, 71.02, 35.24°)
OKLaboklab(49.28% 0.1654 0.0856)
OKLCHoklch(49.28% 0.186 27.3)
XYZxyz(19.1601, 10.4048, 2.0362)
Luminance0.1040 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A1B #1AB3B2
analogous
#B31A67 #B31A1B #B3661A
triadic
#B31A1B #1BB31A #1A1BB3
tetradic
#B31A1B #67B31A #1AB3B2 #661AB3
square
#B31A1B #67B31A #1AB3B2 #661AB3
split-complementary
#B31A1B #1AB366 #1A67B3
monochromatic
#480A0B #7E1213 #B31A1B #E02A2B #E86060

Accessibility & contrast

On white

6.82
#B31A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#B31A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A1B
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A1B#FFFFFF#000000##FFFFFF
##B31A1B1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4618
Deuteranopia (green-blind)
#736611
Tritanopia (blue-blind)
#C6001D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #b31a1b;
/* rgb */ color: rgb(179, 26, 27);
/* oklch */ color: oklch(49.3% 0.186 27.3);
Tailwind
colors: {
  custom: {
    50: '#d46959',
    500: '#b31a1b',
    950: '#000000',
  },
}
SCSS
$custom: #b31a1b;
$custom-light: #d46959;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a1b",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 27
  },
  "hsl": {
    "h": 359.608,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49279,
    "c": 0.18626,
    "h": 27.3
  },
  "luminance": 0.10402
}

Semantic roles & 50–950 ramp

primary
#B31A1B
secondary
#5DCCCB
accent
#F1F037
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160703
muted
#847A78

Preview Lab

Preview with #B31A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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