#40070C#40070C
#40070C is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.4% C 0.086 H 22.0°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).
Color values
| HEX | #40070C |
|---|---|
| RGB | rgb(64, 7, 12) |
| HSL | hsl(355, 80%, 14%) |
| HSV | hsv(355, 89%, 25%) |
| CMYK | cmyk(0%, 89.1%, 81.2%, 74.9%) |
| CIE-LAB | lab(11.06, 27.10, 12.28) |
| CIE-LCH | lch(11.06, 29.75, 24.39°) |
| OKLab | oklab(24.38% 0.0794 0.0321) |
| OKLCH | oklch(24.38% 0.086 22) |
| XYZ | xyz(2.2570, 1.2688, 0.4738) |
| Luminance | 0.0127 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Dark Maroon
#3C0008
ΔE00 2.15
Deep Brown
#410200
ΔE00 2.40
Mahogany
#4A0100
ΔE00 4.32
Dried Blood
#4B0101
ΔE00 4.37
Burgundy (survey)
#610023
ΔE00 8.48
Claret
#680018
ΔE00 8.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40070C #07403B
analogous
#400729 #40070C #401F07
triadic
#40070C #0C4007 #070C40
tetradic
#40070C #294007 #07403B #1F0740
square
#40070C #294007 #07403B #1F0740
split-complementary
#40070C #07401F #072940
monochromatic
#1C0305 #1C0305 #40070C #770D16 #AE1321
Accessibility & contrast
On white
16.75
#40070C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.25
#40070C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40070C
16.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40070C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40070C | 1.00 | 16.75 | 1.25 | 16.75 |
| #FFFFFF | 16.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#18160C
Deuteranopia (green-blind)
#26220A
Tritanopia (blue-blind)
#470009
Achromatopsia (no color)
#1E1E1E
Design tokens & code
CSS
--color: #40070c; /* rgb */ color: rgb(64, 7, 12); /* oklch */ color: oklch(24.4% 0.086 22.0);
Tailwind
colors: {
custom: {
50: '#7a4d4c',
500: '#40070c',
950: '#000000',
},
}SCSS
$custom: #40070c; $custom-light: #7a4d4c; $custom-dark: #000000;
JSON
{
"hex": "#40070c",
"rgb": {
"r": 64,
"g": 7,
"b": 12
},
"hsl": {
"h": 354.737,
"s": 80.282,
"l": 13.922
},
"oklch": {
"l": 0.24377,
"c": 0.08562,
"h": 22
},
"luminance": 0.01268
}Semantic roles & 50–950 ramp
primary
#40070C
secondary
#247F77
accent
#F7E531
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777