#400C1F#400C1F
#400C1F is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.5% C 0.081 H 2.8°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).
Color values
| HEX | #400C1F |
|---|---|
| RGB | rgb(64, 12, 31) |
| HSL | hsl(338, 68%, 15%) |
| HSV | hsv(338, 81%, 25%) |
| CMYK | cmyk(0%, 81.2%, 51.6%, 74.9%) |
| CIE-LAB | lab(12.30, 26.58, 1.44) |
| CIE-LCH | lch(12.30, 26.62, 3.11°) |
| OKLab | oklab(25.46% 0.0814 0.004) |
| OKLCH | oklch(25.46% 0.081 2.8) |
| XYZ | xyz(2.4933, 1.4522, 1.4451) |
| Luminance | 0.0145 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Dark Maroon
#3C0008
ΔE00 6.30
Dark Plum
#3F012C
ΔE00 7.24
Burgundy (survey)
#610023
ΔE00 7.96
Maroon (survey)
#650021
ΔE00 9.23
Aubergine
#3D0734
ΔE00 9.41
Deep Brown
#410200
ΔE00 9.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#400C1F #0C402D
analogous
#400C39 #400C1F #40130C
triadic
#400C1F #1F400C #0C1F40
tetradic
#400C1F #39400C #0C402D #130C40
square
#400C1F #39400C #0C402D #130C40
split-complementary
#400C1F #0C4013 #0C3940
monochromatic
#1A050C #1A050C #400C1F #741638 #A71F51
Accessibility & contrast
On white
16.27
#400C1F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.29
#400C1F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #400C1F
16.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##400C1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##400C1F | 1.00 | 16.27 | 1.29 | 16.27 |
| #FFFFFF | 16.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#181A1F
Deuteranopia (green-blind)
#25241E
Tritanopia (blue-blind)
#460514
Achromatopsia (no color)
#202020
Design tokens & code
CSS
--color: #400c1f; /* rgb */ color: rgb(64, 12, 31); /* oklch */ color: oklch(25.5% 0.081 2.8);
Tailwind
colors: {
custom: {
50: '#78505a',
500: '#400c1f',
950: '#000000',
},
}SCSS
$custom: #400c1f; $custom-light: #78505a; $custom-dark: #000000;
JSON
{
"hex": "#400c1f",
"rgb": {
"r": 64,
"g": 12,
"b": 31
},
"hsl": {
"h": 338.077,
"s": 68.421,
"l": 14.902
},
"oklch": {
"l": 0.25458,
"c": 0.08147,
"h": 2.8
},
"luminance": 0.01452
}Semantic roles & 50–950 ramp
primary
#400C1F
secondary
#2C7C5F
accent
#EBAB3D
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878