#42171F#42171F
#42171F is a dark, moderate red. Relative luminance 0.019; OKLCH L 27.4% C 0.067 H 11.2°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).
Color values
| HEX | #42171F |
|---|---|
| RGB | rgb(66, 23, 31) |
| HSL | hsl(349, 48%, 17%) |
| HSV | hsv(349, 65%, 26%) |
| CMYK | cmyk(0%, 65.2%, 53%, 74.1%) |
| CIE-LAB | lab(14.79, 21.71, 5.04) |
| CIE-LCH | lch(14.79, 22.29, 13.07°) |
| OKLab | oklab(27.39% 0.0658 0.013) |
| OKLCH | oklch(27.39% 0.067 11.2) |
| XYZ | xyz(2.8007, 1.8703, 1.5096) |
| Luminance | 0.0187 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Dark Maroon
#3C0008
ΔE00 5.95
Deep Brown
#410200
ΔE00 7.80
Burgundy (survey)
#610023
ΔE00 8.52
Maroon (survey)
#650021
ΔE00 9.20
Dried Blood
#4B0101
ΔE00 9.28
Mahogany
#4A0100
ΔE00 9.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42171F #17423A
analogous
#421735 #42171F #422417
triadic
#42171F #1F4217 #171F42
tetradic
#42171F #354217 #17423A #241742
square
#42171F #354217 #17423A #241742
split-complementary
#42171F #174224 #173542
monochromatic
#17080B #17080B #42171F #6F2734 #9D374A
Accessibility & contrast
On white
15.28
#42171F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#42171F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42171F
15.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42171F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42171F | 1.00 | 15.28 | 1.37 | 15.28 |
| #FFFFFF | 15.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#20201F
Deuteranopia (green-blind)
#2B281E
Tritanopia (blue-blind)
#48111A
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #42171f; /* rgb */ color: rgb(66, 23, 31); /* oklch */ color: oklch(27.4% 0.067 11.2);
Tailwind
colors: {
custom: {
50: '#79565a',
500: '#42171f',
950: '#000000',
},
}SCSS
$custom: #42171f; $custom-light: #79565a; $custom-dark: #000000;
JSON
{
"hex": "#42171f",
"rgb": {
"r": 66,
"g": 23,
"b": 31
},
"hsl": {
"h": 348.837,
"s": 48.315,
"l": 17.451
},
"oklch": {
"l": 0.2739,
"c": 0.06706,
"h": 11.2
},
"luminance": 0.0187
}Semantic roles & 50–950 ramp
primary
#42171F
secondary
#3C796E
accent
#D8BF50
background
#F7F5F5
surface
#EEE9E9
border
#C9C5C5
text
#090303
muted
#7B7878