#B31B17#B31B17
#B31B17 is a mid, vivid red. Relative luminance 0.104; OKLCH L 49.3% C 0.186 H 28.4°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).
Color values
| HEX | #B31B17 |
|---|---|
| RGB | rgb(179, 27, 23) |
| HSL | hsl(2, 77%, 40%) |
| HSV | hsv(2, 87%, 70%) |
| CMYK | cmyk(0%, 84.9%, 87.2%, 29.8%) |
| CIE-LAB | lab(38.61, 57.69, 43.05) |
| CIE-LCH | lch(38.61, 71.98, 36.73°) |
| OKLab | oklab(49.31% 0.1637 0.0885) |
| OKLCH | oklch(49.31% 0.186 28.4) |
| XYZ | xyz(19.1395, 10.4326, 1.8164) |
| Luminance | 0.1043 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.24
Scarlet
#BE0119
ΔE00 2.40
Darkish Red
#A90308
ΔE00 3.22
Brick
#A03623
ΔE00 4.61
Brownish Red
#9E3623
ΔE00 4.88
Brown
#A52A2A
ΔE00 4.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B31B17 #17AFB3
analogous
#B31761 #B31B17 #B36917
triadic
#B31B17 #17B31B #1B17B3
tetradic
#B31B17 #61B317 #17AFB3 #6917B3
square
#B31B17 #61B317 #17AFB3 #6917B3
split-complementary
#B31B17 #17B369 #1761B3
monochromatic
#470B09 #7D1310 #B31B17 #E32924 #EA5E5B
Accessibility & contrast
On white
6.81
#B31B17 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#B31B17 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B31B17
6.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B31B17 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B31B17 | 1.00 | 6.81 | 3.09 | 6.81 |
| #FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F4613
Deuteranopia (green-blind)
#74660B
Tritanopia (blue-blind)
#C6001D
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #b31b17; /* rgb */ color: rgb(179, 27, 23); /* oklch */ color: oklch(49.3% 0.186 28.4);
Tailwind
colors: {
custom: {
50: '#d46a57',
500: '#b31b17',
950: '#000000',
},
}SCSS
$custom: #b31b17; $custom-light: #d46a57; $custom-dark: #000000;
JSON
{
"hex": "#b31b17",
"rgb": {
"r": 179,
"g": 27,
"b": 23
},
"hsl": {
"h": 1.538,
"s": 77.228,
"l": 39.608
},
"oklch": {
"l": 0.49306,
"c": 0.18611,
"h": 28.4
},
"luminance": 0.10429
}Semantic roles & 50–950 ramp
primary
#B31B17
secondary
#58CACD
accent
#EFF434
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160703
muted
#847A78