#40052E#40052E
#40052E is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.4% C 0.099 H 343.9°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).
Color values
| HEX | #40052E |
|---|---|
| RGB | rgb(64, 5, 46) |
| HSL | hsl(318, 86%, 14%) |
| HSV | hsv(318, 92%, 25%) |
| CMYK | cmyk(0%, 92.2%, 28.1%, 74.9%) |
| CIE-LAB | lab(11.93, 31.45, -10.26) |
| CIE-LCH | lch(11.93, 33.08, 341.93°) |
| OKLab | oklab(25.4% 0.0953 -0.0274) |
| OKLCH | oklch(25.4% 0.099 343.9) |
| XYZ | xyz(2.6619, 1.3961, 2.7135) |
| Luminance | 0.0140 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Dark Plum
#3F012C
ΔE00 0.78
Aubergine
#3D0734
ΔE00 2.59
Eggplant
#380835
ΔE00 4.11
Plum (survey)
#580F41
ΔE00 5.38
Eggplant Purple
#430541
ΔE00 5.64
Deep Violet
#490648
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40052E #054017
analogous
#340540 #40052E #400510
triadic
#40052E #2E4005 #052E40
tetradic
#40052E #403405 #054017 #051040
square
#40052E #403405 #054017 #051040
split-complementary
#40052E #104005 #054034
monochromatic
#1C0214 #1C0214 #40052E #790957 #B20E80
Accessibility & contrast
On white
16.42
#40052E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.28
#40052E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40052E
16.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40052E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40052E | 1.00 | 16.42 | 1.28 | 16.42 |
| #FFFFFF | 16.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C192F
Deuteranopia (green-blind)
#1F232D
Tritanopia (blue-blind)
#450519
Achromatopsia (no color)
#1F1F1F
Design tokens & code
CSS
--color: #40052e; /* rgb */ color: rgb(64, 5, 46); /* oklch */ color: oklch(25.4% 0.099 343.9);
Tailwind
colors: {
custom: {
50: '#784d66',
500: '#40052e',
950: '#000000',
},
}SCSS
$custom: #40052e; $custom-light: #784d66; $custom-dark: #000000;
JSON
{
"hex": "#40052e",
"rgb": {
"r": 64,
"g": 5,
"b": 46
},
"hsl": {
"h": 318.305,
"s": 85.507,
"l": 13.529
},
"oklch": {
"l": 0.254,
"c": 0.09914,
"h": 343.9
},
"luminance": 0.01396
}Semantic roles & 50–950 ramp
primary
#40052E
secondary
#20813E
accent
#FC6B2C
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A