#B31F17#B31F17
#B31F17 is a mid, vivid red. Relative luminance 0.106; OKLCH L 49.6% C 0.184 H 29.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).
Color values
| HEX | #B31F17 |
|---|---|
| RGB | rgb(179, 31, 23) |
| HSL | hsl(3, 77%, 40%) |
| HSV | hsv(3, 87%, 70%) |
| CMYK | cmyk(0%, 82.7%, 87.2%, 29.8%) |
| CIE-LAB | lab(38.95, 56.72, 43.33) |
| CIE-LCH | lch(38.95, 71.38, 37.38°) |
| OKLab | oklab(49.56% 0.1607 0.0891) |
| OKLCH | oklch(49.56% 0.184 29) |
| XYZ | xyz(19.2375, 10.6287, 1.8491) |
| Luminance | 0.1063 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.53
Scarlet
#BE0119
ΔE00 2.74
Darkish Red
#A90308
ΔE00 3.42
Brick
#A03623
ΔE00 4.37
Rusty Red
#AF2F0D
ΔE00 4.46
Rust Red
#AA2704
ΔE00 4.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B31F17 #17ABB3
analogous
#B3175D #B31F17 #B36D17
triadic
#B31F17 #17B31F #1F17B3
tetradic
#B31F17 #5DB317 #17ABB3 #6D17B3
square
#B31F17 #5DB317 #17ABB3 #6D17B3
split-complementary
#B31F17 #17B36D #175DB3
monochromatic
#470C09 #7D1610 #B31F17 #E32E24 #EA625B
Accessibility & contrast
On white
6.72
#B31F17 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#B31F17 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B31F17
6.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B31F17 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B31F17 | 1.00 | 6.72 | 3.13 | 6.72 |
| #FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#514713
Deuteranopia (green-blind)
#74670C
Tritanopia (blue-blind)
#C60020
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #b31f17; /* rgb */ color: rgb(179, 31, 23); /* oklch */ color: oklch(49.6% 0.184 29.0);
Tailwind
colors: {
custom: {
50: '#d46b57',
500: '#b31f17',
950: '#000000',
},
}SCSS
$custom: #b31f17; $custom-light: #d46b57; $custom-dark: #000000;
JSON
{
"hex": "#b31f17",
"rgb": {
"r": 179,
"g": 31,
"b": 23
},
"hsl": {
"h": 3.077,
"s": 77.228,
"l": 39.608
},
"oklch": {
"l": 0.49558,
"c": 0.18378,
"h": 29
},
"luminance": 0.10626
}Semantic roles & 50–950 ramp
primary
#B31F17
secondary
#58C7CD
accent
#EAF434
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160703
muted
#847A78