#B31C1A#B31C1A
#B31C1A is a mid, vivid red. Relative luminance 0.105; OKLCH L 49.4% C 0.185 H 27.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).
Color values
| HEX | #B31C1A |
|---|---|
| RGB | rgb(179, 28, 26) |
| HSL | hsl(1, 75%, 40%) |
| HSV | hsv(1, 85%, 70%) |
| CMYK | cmyk(0%, 84.4%, 85.5%, 29.8%) |
| CIE-LAB | lab(38.71, 57.52, 41.63) |
| CIE-LCH | lch(38.71, 71.01, 35.90°) |
| OKLab | oklab(49.39% 0.1638 0.0866) |
| OKLCH | oklch(49.39% 0.185 27.9) |
| XYZ | xyz(19.1946, 10.4920, 1.9916) |
| Luminance | 0.1049 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 1.62
Scarlet
#BE0119
ΔE00 2.13
Darkish Red
#A90308
ΔE00 3.57
Brown
#A52A2A
ΔE00 4.39
Brick
#A03623
ΔE00 4.63
Brownish Red
#9E3623
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B31C1A #1AB1B3
analogous
#B31A65 #B31C1A #B3681A
triadic
#B31C1A #1AB31C #1C1AB3
tetradic
#B31C1A #65B31A #1AB1B3 #681AB3
square
#B31C1A #65B31A #1AB1B3 #681AB3
split-complementary
#B31C1A #1AB368 #1A65B3
monochromatic
#480B0A #7E1412 #B31C1A #E02C2A #E86160
Accessibility & contrast
On white
6.78
#B31C1A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#B31C1A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B31C1A
6.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B31C1A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B31C1A | 1.00 | 6.78 | 3.10 | 6.78 |
| #FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F4617
Deuteranopia (green-blind)
#746710
Tritanopia (blue-blind)
#C6001E
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #b31c1a; /* rgb */ color: rgb(179, 28, 26); /* oklch */ color: oklch(49.4% 0.185 27.9);
Tailwind
colors: {
custom: {
50: '#d46a59',
500: '#b31c1a',
950: '#000000',
},
}SCSS
$custom: #b31c1a; $custom-light: #d46a59; $custom-dark: #000000;
JSON
{
"hex": "#b31c1a",
"rgb": {
"r": 179,
"g": 28,
"b": 26
},
"hsl": {
"h": 0.784,
"s": 74.634,
"l": 40.196
},
"oklch": {
"l": 0.49389,
"c": 0.18524,
"h": 27.9
},
"luminance": 0.10489
}Semantic roles & 50–950 ramp
primary
#B31C1A
secondary
#5DCBCC
accent
#EFF137
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160703
muted
#847A78