#B31F1A#B31F1A

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

Color values

HEX#B31F1A
RGBrgb(179, 31, 26)
HSLhsl(2, 75%, 40%)
HSVhsv(2, 85%, 70%)
CMYKcmyk(0%, 82.7%, 85.5%, 29.8%)
CIE-LABlab(38.97, 56.79, 41.86)
CIE-LCHlch(38.97, 70.55, 36.40°)
OKLaboklab(49.58% 0.1615 0.0871)
OKLCHoklch(49.58% 0.183 28.4)
XYZxyz(19.2693, 10.6415, 2.0165)
Luminance0.1064 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F1A #1AAEB3
analogous
#B31A61 #B31F1A #B36C1A
triadic
#B31F1A #1AB31F #1F1AB3
tetradic
#B31F1A #61B31A #1AAEB3 #6C1AB3
square
#B31F1A #61B31A #1AAEB3 #6C1AB3
split-complementary
#B31F1A #1AB36C #1A61B3
monochromatic
#480C0A #7E1612 #B31F1A #E0302A #E86460

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31F1A#FFFFFF#000000##FFFFFF
##B31F1A1.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)
#504717
Deuteranopia (green-blind)
#746710
Tritanopia (blue-blind)
#C60020
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #b31f1a;
/* rgb */ color: rgb(179, 31, 26);
/* oklch */ color: oklch(49.6% 0.183 28.4);
Tailwind
colors: {
  custom: {
    50: '#d46b59',
    500: '#b31f1a',
    950: '#000000',
  },
}
SCSS
$custom: #b31f1a;
$custom-light: #d46b59;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f1a",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 26
  },
  "hsl": {
    "h": 1.961,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49581,
    "c": 0.18347,
    "h": 28.4
  },
  "luminance": 0.10638
}

Semantic roles & 50–950 ramp

primary
#B31F1A
secondary
#5DC8CC
accent
#EBF137
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160803
muted
#847A78

Preview Lab

Preview with #B31F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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