#51171E#51171E
#51171E is a dark, moderate red. Relative luminance 0.025; OKLCH L 30.1% C 0.086 H 17.0°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).
Color values
| HEX | #51171E |
|---|---|
| RGB | rgb(81, 23, 30) |
| HSL | hsl(353, 56%, 20%) |
| HSV | hsv(353, 72%, 32%) |
| CMYK | cmyk(0%, 71.6%, 63%, 68.2%) |
| CIE-LAB | lab(17.72, 27.62, 10.25) |
| CIE-LCH | lch(17.72, 29.46, 20.36°) |
| OKLab | oklab(30.14% 0.0827 0.0253) |
| OKLCH | oklch(30.14% 0.086 17) |
| XYZ | xyz(3.9344, 2.4564, 1.4950) |
| Luminance | 0.0246 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Dark Maroon
#3C0008
ΔE00 5.79
Maroon (survey)
#650021
ΔE00 5.84
Burgundy (survey)
#610023
ΔE00 5.89
Deep Brown
#410200
ΔE00 6.08
Dried Blood
#4B0101
ΔE00 6.36
Mahogany
#4A0100
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51171E #17514A
analogous
#51173B #51171E #512D17
triadic
#51171E #1E5117 #171E51
tetradic
#51171E #3B5117 #17514A #2D1751
square
#51171E #3B5117 #17514A #2D1751
split-complementary
#51171E #17512D #173B51
monochromatic
#180709 #21090C #51171E #812530 #B03241
Accessibility & contrast
On white
14.08
#51171E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#51171E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51171E
14.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51171E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51171E | 1.00 | 14.08 | 1.49 | 14.08 |
| #FFFFFF | 14.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#25241E
Deuteranopia (green-blind)
#34301D
Tritanopia (blue-blind)
#590B1A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #51171e; /* rgb */ color: rgb(81, 23, 30); /* oklch */ color: oklch(30.1% 0.086 17.0);
Tailwind
colors: {
custom: {
50: '#865859',
500: '#51171e',
950: '#000000',
},
}SCSS
$custom: #51171e; $custom-light: #865859; $custom-dark: #000000;
JSON
{
"hex": "#51171e",
"rgb": {
"r": 81,
"g": 23,
"b": 30
},
"hsl": {
"h": 352.759,
"s": 55.769,
"l": 20.392
},
"oklch": {
"l": 0.30142,
"c": 0.08647,
"h": 17
},
"luminance": 0.02456
}Semantic roles & 50–950 ramp
primary
#51171E
secondary
#3C887F
accent
#DFCD49
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878