#51171F#51171F
#51171F is a dark, moderate red. Relative luminance 0.025; OKLCH L 30.2% C 0.086 H 15.9°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).
Color values
| HEX | #51171F |
|---|---|
| RGB | rgb(81, 23, 31) |
| HSL | hsl(352, 56%, 20%) |
| HSV | hsv(352, 72%, 32%) |
| CMYK | cmyk(0%, 71.6%, 61.7%, 68.2%) |
| CIE-LAB | lab(17.74, 27.70, 9.57) |
| CIE-LCH | lch(17.74, 29.31, 19.06°) |
| OKLab | oklab(30.17% 0.0832 0.0237) |
| OKLCH | oklch(30.17% 0.086 15.9) |
| XYZ | xyz(3.9474, 2.4616, 1.5633) |
| Luminance | 0.0246 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Burgundy (survey)
#610023
ΔE00 5.65
Maroon (survey)
#650021
ΔE00 5.72
Dark Maroon
#3C0008
ΔE00 5.83
Deep Brown
#410200
ΔE00 6.38
Claret
#680018
ΔE00 6.72
Dried Blood
#4B0101
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51171F #175149
analogous
#51173C #51171F #512C17
triadic
#51171F #1F5117 #171F51
tetradic
#51171F #3C5117 #175149 #2C1751
square
#51171F #3C5117 #175149 #2C1751
split-complementary
#51171F #17512C #173C51
monochromatic
#180709 #21090D #51171F #812531 #B03243
Accessibility & contrast
On white
14.07
#51171F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#51171F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51171F
14.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51171F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51171F | 1.00 | 14.07 | 1.49 | 14.07 |
| #FFFFFF | 14.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#25241F
Deuteranopia (green-blind)
#34301E
Tritanopia (blue-blind)
#590C1A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #51171f; /* rgb */ color: rgb(81, 23, 31); /* oklch */ color: oklch(30.2% 0.086 15.9);
Tailwind
colors: {
custom: {
50: '#86585a',
500: '#51171f',
950: '#000000',
},
}SCSS
$custom: #51171f; $custom-light: #86585a; $custom-dark: #000000;
JSON
{
"hex": "#51171f",
"rgb": {
"r": 81,
"g": 23,
"b": 31
},
"hsl": {
"h": 351.724,
"s": 55.769,
"l": 20.392
},
"oklch": {
"l": 0.30168,
"c": 0.08647,
"h": 15.9
},
"luminance": 0.02461
}Semantic roles & 50–950 ramp
primary
#51171F
secondary
#3C887E
accent
#DFCA49
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878