#B31F1D#B31F1D

#B31F1D is a mid, vivid red. Relative luminance 0.107; OKLCH L 49.6% C 0.183 H 27.6°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#B31F1D
RGBrgb(179, 31, 29)
HSLhsl(1, 72%, 41%)
HSVhsv(1, 84%, 70%)
CMYKcmyk(0%, 82.7%, 83.8%, 29.8%)
CIE-LABlab(38.99, 56.86, 40.32)
CIE-LCHlch(38.99, 69.71, 35.34°)
OKLaboklab(49.61% 0.1622 0.085)
OKLCHoklch(49.61% 0.183 27.6)
XYZxyz(19.3046, 10.6556, 2.2025)
Luminance0.1065 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F1D #1DB1B3
analogous
#B31D66 #B31F1D #B36A1D
triadic
#B31F1D #1DB31F #1F1DB3
tetradic
#B31F1D #66B31D #1DB1B3 #6A1DB3
square
#B31F1D #66B31D #1DB1B3 #6A1DB3
split-complementary
#B31F1D #1DB36A #1D66B3
monochromatic
#4A0D0C #7E1614 #B31F1D #DD3230 #E66664

Accessibility & contrast

On white

6.71
#B31F1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#B31F1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31F1D
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F1D#FFFFFF#000000##FFFFFF
##B31F1D1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50471A
Deuteranopia (green-blind)
#746714
Tritanopia (blue-blind)
#C60021
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #b31f1d;
/* rgb */ color: rgb(179, 31, 29);
/* oklch */ color: oklch(49.6% 0.183 27.6);
Tailwind
colors: {
  custom: {
    50: '#d46b5b',
    500: '#b31f1d',
    950: '#000000',
  },
}
SCSS
$custom: #b31f1d;
$custom-light: #d46b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f1d",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 29
  },
  "hsl": {
    "h": 0.8,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49607,
    "c": 0.18314,
    "h": 27.6
  },
  "luminance": 0.10652
}

Semantic roles & 50–950 ramp

primary
#B31F1D
secondary
#61CACB
accent
#ECEF39
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160804
muted
#847A79

Preview Lab

Preview with #B31F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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