#400D0F#400D0F
#400D0F is a dark, moderate red. Relative luminance 0.014; OKLCH L 25.1% C 0.079 H 22.8°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).
Color values
| HEX | #400D0F |
|---|---|
| RGB | rgb(64, 13, 15) |
| HSL | hsl(358, 66%, 15%) |
| HSV | hsv(358, 80%, 25%) |
| CMYK | cmyk(0%, 79.7%, 76.6%, 74.9%) |
| CIE-LAB | lab(12.04, 24.68, 12.16) |
| CIE-LCH | lch(12.04, 27.52, 26.23°) |
| OKLab | oklab(25.13% 0.0725 0.0305) |
| OKLCH | oklch(25.13% 0.079 22.8) |
| XYZ | xyz(2.3448, 1.4127, 0.6011) |
| Luminance | 0.0141 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Deep Brown
#410200
ΔE00 2.91
Dark Maroon
#3C0008
ΔE00 3.34
Mahogany
#4A0100
ΔE00 4.62
Dried Blood
#4B0101
ΔE00 4.69
Claret
#680018
ΔE00 8.88
Maroon (survey)
#650021
ΔE00 9.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#400D0F #0D403E
analogous
#400D28 #400D0F #40240D
triadic
#400D0F #0F400D #0D0F40
tetradic
#400D0F #28400D #0D403E #240D40
square
#400D0F #28400D #0D403E #240D40
split-complementary
#400D0F #0D4024 #0D2840
monochromatic
#190506 #190506 #400D0F #73171B #A62227
Accessibility & contrast
On white
16.38
#400D0F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.28
#400D0F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #400D0F
16.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##400D0F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##400D0F | 1.00 | 16.38 | 1.28 | 16.38 |
| #FFFFFF | 16.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B190F
Deuteranopia (green-blind)
#28240D
Tritanopia (blue-blind)
#47010E
Achromatopsia (no color)
#202020
Design tokens & code
CSS
--color: #400d0f; /* rgb */ color: rgb(64, 13, 15); /* oklch */ color: oklch(25.1% 0.079 22.8);
Tailwind
colors: {
custom: {
50: '#79504d',
500: '#400d0f',
950: '#000000',
},
}SCSS
$custom: #400d0f; $custom-light: #79504d; $custom-dark: #000000;
JSON
{
"hex": "#400d0f",
"rgb": {
"r": 64,
"g": 13,
"b": 15
},
"hsl": {
"h": 357.647,
"s": 66.234,
"l": 15.098
},
"oklch": {
"l": 0.25128,
"c": 0.07863,
"h": 22.8
},
"luminance": 0.01412
}Semantic roles & 50–950 ramp
primary
#400D0F
secondary
#2D7C78
accent
#E9E23F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877