#400C2F#400C2F
#400C2F is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.2% C 0.090 H 343.9°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).
Color values
| HEX | #400C2F |
|---|---|
| RGB | rgb(64, 12, 47) |
| HSL | hsl(320, 68%, 15%) |
| HSV | hsv(320, 81%, 25%) |
| CMYK | cmyk(0%, 81.2%, 26.6%, 74.9%) |
| CIE-LAB | lab(12.98, 28.77, -9.39) |
| CIE-LCH | lch(12.98, 30.26, 341.93°) |
| OKLab | oklab(26.17% 0.0868 -0.025) |
| OKLCH | oklch(26.17% 0.09 343.9) |
| XYZ | xyz(2.7590, 1.5585, 2.8443) |
| Luminance | 0.0156 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Dark Plum
#3F012C
ΔE00 2.08
Aubergine
#3D0734
ΔE00 3.01
Eggplant
#380835
ΔE00 4.36
Plum (survey)
#580F41
ΔE00 5.47
Eggplant Purple
#430541
ΔE00 6.14
Deep Violet
#490648
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#400C2F #0C401D
analogous
#370C40 #400C2F #400C15
triadic
#400C2F #2F400C #0C2F40
tetradic
#400C2F #40370C #0C401D #0C1540
square
#400C2F #40370C #0C401D #0C1540
split-complementary
#400C2F #15400C #0C4037
monochromatic
#1A0513 #1A0513 #400C2F #741655 #A71F7B
Accessibility & contrast
On white
16.01
#400C2F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.31
#400C2F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #400C2F
16.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##400C2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##400C2F | 1.00 | 16.01 | 1.31 | 16.01 |
| #FFFFFF | 16.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#121C30
Deuteranopia (green-blind)
#21252E
Tritanopia (blue-blind)
#450C1C
Achromatopsia (no color)
#212121
Design tokens & code
CSS
--color: #400c2f; /* rgb */ color: rgb(64, 12, 47); /* oklch */ color: oklch(26.2% 0.090 343.9);
Tailwind
colors: {
custom: {
50: '#775067',
500: '#400c2f',
950: '#000000',
},
}SCSS
$custom: #400c2f; $custom-light: #775067; $custom-dark: #000000;
JSON
{
"hex": "#400c2f",
"rgb": {
"r": 64,
"g": 12,
"b": 47
},
"hsl": {
"h": 319.615,
"s": 68.421,
"l": 14.902
},
"oklch": {
"l": 0.26173,
"c": 0.0903,
"h": 343.9
},
"luminance": 0.01558
}Semantic roles & 50–950 ramp
primary
#400C2F
secondary
#2C7C46
accent
#EB763D
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A