#40171A#40171A
#40171A is a dark, moderate red. Relative luminance 0.018; OKLCH L 26.9% C 0.064 H 18.0°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).
Color values
| HEX | #40171A |
|---|---|
| RGB | rgb(64, 23, 26) |
| HSL | hsl(356, 47%, 17%) |
| HSV | hsv(356, 64%, 25%) |
| CMYK | cmyk(0%, 64.1%, 59.4%, 74.9%) |
| CIE-LAB | lab(14.27, 20.30, 7.90) |
| CIE-LCH | lch(14.27, 21.79, 21.27°) |
| OKLab | oklab(26.88% 0.0609 0.0198) |
| OKLCH | oklch(26.88% 0.064 18) |
| XYZ | xyz(2.6074, 1.7777, 1.1829) |
| Luminance | 0.0178 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Dark Maroon
#3C0008
ΔE00 5.57
Deep Brown
#410200
ΔE00 6.38
Mahogany
#4A0100
ΔE00 7.83
Dried Blood
#4B0101
ΔE00 7.86
Burgundy (survey)
#610023
ΔE00 9.49
Maroon (survey)
#650021
ΔE00 9.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40171A #17403D
analogous
#40172F #40171A #402917
triadic
#40171A #1A4017 #171A40
tetradic
#40171A #2F4017 #17403D #291740
square
#40171A #2F4017 #17403D #291740
split-complementary
#40171A #174029 #172F40
monochromatic
#170809 #170809 #40171A #6D272C #9A373F
Accessibility & contrast
On white
15.49
#40171A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.36
#40171A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40171A
15.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40171A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40171A | 1.00 | 15.49 | 1.36 | 15.49 |
| #FFFFFF | 15.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#201F1A
Deuteranopia (green-blind)
#2B2719
Tritanopia (blue-blind)
#461118
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #40171a; /* rgb */ color: rgb(64, 23, 26); /* oklch */ color: oklch(26.9% 0.064 18.0);
Tailwind
colors: {
custom: {
50: '#785656',
500: '#40171a',
950: '#000000',
},
}SCSS
$custom: #40171a; $custom-light: #785656; $custom-dark: #000000;
JSON
{
"hex": "#40171a",
"rgb": {
"r": 64,
"g": 23,
"b": 26
},
"hsl": {
"h": 355.61,
"s": 47.126,
"l": 17.059
},
"oklch": {
"l": 0.26882,
"c": 0.06405,
"h": 18
},
"luminance": 0.01777
}Semantic roles & 50–950 ramp
primary
#40171A
secondary
#3C7773
accent
#D7CD51
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090303
muted
#7B7878