#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 |
|---|---|
| RGB | rgb(179, 26, 27) |
| HSL | hsl(360, 75%, 40%) |
| HSV | hsv(360, 85%, 70%) |
| CMYK | cmyk(0%, 85.5%, 84.9%, 29.8%) |
| CIE-LAB | lab(38.56, 58.00, 40.98) |
| CIE-LCH | lch(38.56, 71.02, 35.24°) |
| OKLab | oklab(49.28% 0.1654 0.0856) |
| OKLCH | oklch(49.28% 0.186 27.3) |
| XYZ | xyz(19.1601, 10.4048, 2.0362) |
| Luminance | 0.1040 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 1.33
Scarlet
#BE0119
ΔE00 1.98
Darkish Red
#A90308
ΔE00 3.69
Brown
#A52A2A
ΔE00 4.11
Brick
#A03623
ΔE00 4.84
Brownish Red
#9E3623
ΔE00 5.09
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 |
|---|---|---|---|---|
| ##B31A1B | 1.00 | 6.82 | 3.08 | 6.82 |
| #FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.82 | 1.00 | 21.00 | 1.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