#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 |
|---|---|
| RGB | rgb(179, 27, 26) |
| HSL | hsl(0, 75%, 40%) |
| HSV | hsv(0, 85%, 70%) |
| CMYK | cmyk(0%, 84.9%, 85.5%, 29.8%) |
| CIE-LAB | lab(38.63, 57.75, 41.56) |
| CIE-LCH | lch(38.63, 71.15, 35.74°) |
| OKLab | oklab(49.33% 0.1645 0.0865) |
| OKLCH | oklch(49.33% 0.186 27.7) |
| XYZ | xyz(19.1712, 10.4454, 1.9838) |
| Luminance | 0.1044 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 1.57
Scarlet
#BE0119
ΔE00 2.08
Darkish Red
#A90308
ΔE00 3.55
Brown
#A52A2A
ΔE00 4.34
Brick
#A03623
ΔE00 4.71
Brownish Red
#9E3623
ΔE00 4.97
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 |
|---|---|---|---|---|
| ##B31B1A | 1.00 | 6.80 | 3.09 | 6.80 |
| #FFFFFF | 6.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.80 | 1.00 | 21.00 | 1.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