#B31F1B#B31F1B

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

Color values

HEX#B31F1B
RGBrgb(179, 31, 27)
HSLhsl(2, 74%, 40%)
HSVhsv(2, 85%, 70%)
CMYKcmyk(0%, 82.7%, 84.9%, 29.8%)
CIE-LABlab(38.98, 56.81, 41.36)
CIE-LCHlch(38.98, 70.27, 36.05°)
OKLaboklab(49.59% 0.1617 0.0864)
OKLCHoklch(49.59% 0.183 28.1)
XYZxyz(19.2807, 10.6460, 2.0764)
Luminance0.1064 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F1B #1BAFB3
analogous
#B31B63 #B31F1B #B36B1B
triadic
#B31F1B #1BB31F #1F1BB3
tetradic
#B31F1B #63B31B #1BAFB3 #6B1BB3
square
#B31F1B #63B31B #1BAFB3 #6B1BB3
split-complementary
#B31F1B #1BB36B #1B63B3
monochromatic
#490D0B #7E1613 #B31F1B #DF312C #E76561

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31F1B#FFFFFF#000000##FFFFFF
##B31F1B1.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)
#504718
Deuteranopia (green-blind)
#746712
Tritanopia (blue-blind)
#C60021
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #b31f1b;
/* rgb */ color: rgb(179, 31, 27);
/* oklch */ color: oklch(49.6% 0.183 28.1);
Tailwind
colors: {
  custom: {
    50: '#d46b59',
    500: '#b31f1b',
    950: '#000000',
  },
}
SCSS
$custom: #b31f1b;
$custom-light: #d46b59;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f1b",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 27
  },
  "hsl": {
    "h": 1.579,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49589,
    "c": 0.18336,
    "h": 28.1
  },
  "luminance": 0.10643
}

Semantic roles & 50–950 ramp

primary
#B31F1B
secondary
#5EC9CC
accent
#ECF037
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160804
muted
#847A79

Preview Lab

Preview with #B31F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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