#9E1F1F#9E1F1F
#9E1F1F is a mid, vivid red. Relative luminance 0.083; OKLCH L 45.7% C 0.163 H 26.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).
Color values
| HEX | #9E1F1F |
|---|---|
| RGB | rgb(158, 31, 31) |
| HSL | hsl(0, 67%, 37%) |
| HSV | hsv(0, 80%, 62%) |
| CMYK | cmyk(0%, 80.4%, 80.4%, 38%) |
| CIE-LAB | lab(34.70, 50.69, 33.56) |
| CIE-LCH | lch(34.70, 60.79, 33.50°) |
| OKLab | oklab(45.67% 0.1457 0.0729) |
| OKLCH | oklch(45.67% 0.163 26.6) |
| XYZ | xyz(14.8397, 8.3504, 2.1265) |
| Luminance | 0.0835 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Carmine
#9D0216
ΔE00 2.40
Brown
#A52A2A
ΔE00 2.72
Firebrick
#B22222
ΔE00 4.11
Darkish Red
#A90308
ΔE00 4.60
Brownish Red
#9E3623
ΔE00 4.81
Brick
#A03623
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E1F1F #1F9E9E
analogous
#9E1F5F #9E1F1F #9E5F1F
triadic
#9E1F1F #1F9E1F #1F1F9E
tetradic
#9E1F1F #5F9E1F #1F9E9E #5F1F9E
square
#9E1F1F #5F9E1F #1F9E9E #5F1F9E
split-complementary
#9E1F1F #1F9E5F #1F5F9E
monochromatic
#380B0B #6B1515 #9E1F1F #D12929 #DE5959
Accessibility & contrast
On white
7.87
#9E1F1F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#9E1F1F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #9E1F1F
7.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E1F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E1F1F | 1.00 | 7.87 | 2.67 | 7.87 |
| #FFFFFF | 7.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#47401D
Deuteranopia (green-blind)
#675B19
Tritanopia (blue-blind)
#AE0021
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #9e1f1f; /* rgb */ color: rgb(158, 31, 31); /* oklch */ color: oklch(45.7% 0.163 26.6);
Tailwind
colors: {
custom: {
50: '#c4675b',
500: '#9e1f1f',
950: '#000000',
},
}SCSS
$custom: #9e1f1f; $custom-light: #c4675b; $custom-dark: #000000;
JSON
{
"hex": "#9e1f1f",
"rgb": {
"r": 158,
"g": 31,
"b": 31
},
"hsl": {
"h": 0,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.45668,
"c": 0.16289,
"h": 26.6
},
"luminance": 0.08348
}Semantic roles & 50–950 ramp
primary
#9E1F1F
secondary
#56C2C2
accent
#EAEA3E
background
#FDF6F5
surface
#FAEBE9
border
#D3C6C5
text
#140704
muted
#837A79