#40120B#40120B
#40120B is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.8% C 0.073 H 31.2°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).
Color values
| HEX | #40120B |
|---|---|
| RGB | rgb(64, 18, 11) |
| HSL | hsl(8, 71%, 15%) |
| HSV | hsv(8, 83%, 25%) |
| CMYK | cmyk(0%, 71.9%, 82.8%, 74.9%) |
| CIE-LAB | lab(12.90, 21.92, 15.25) |
| CIE-LCH | lch(12.90, 26.71, 34.83°) |
| OKLab | oklab(25.75% 0.0628 0.038) |
| OKLCH | oklch(25.75% 0.073 31.2) |
| XYZ | xyz(2.3913, 1.5471, 0.4892) |
| Luminance | 0.0155 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Deep Brown
#410200
ΔE00 4.01
Mahogany
#4A0100
ΔE00 4.85
Dried Blood
#4B0101
ΔE00 4.98
Chocolate Brown
#411900
ΔE00 6.24
Dark Maroon
#3C0008
ΔE00 6.25
Chocolate (survey)
#3D1C02
ΔE00 8.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40120B #0B3940
analogous
#400B1E #40120B #402D0B
triadic
#40120B #0B4012 #120B40
tetradic
#40120B #1E400B #0B3940 #2D0B40
square
#40120B #1E400B #0B3940 #2D0B40
split-complementary
#40120B #0B402D #0B1E40
monochromatic
#1A0704 #1A0704 #40120B #742114 #A82F1D
Accessibility & contrast
On white
16.04
#40120B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.31
#40120B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40120B
16.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40120B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40120B | 1.00 | 16.04 | 1.31 | 16.04 |
| #FFFFFF | 16.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F1B0A
Deuteranopia (green-blind)
#2A250A
Tritanopia (blue-blind)
#470711
Achromatopsia (no color)
#212121
Design tokens & code
CSS
--color: #40120b; /* rgb */ color: rgb(64, 18, 11); /* oklch */ color: oklch(25.8% 0.073 31.2);
Tailwind
colors: {
custom: {
50: '#79524b',
500: '#40120b',
950: '#000000',
},
}SCSS
$custom: #40120b; $custom-light: #79524b; $custom-dark: #000000;
JSON
{
"hex": "#40120b",
"rgb": {
"r": 64,
"g": 18,
"b": 11
},
"hsl": {
"h": 7.925,
"s": 70.667,
"l": 14.706
},
"oklch": {
"l": 0.25754,
"c": 0.07343,
"h": 31.2
},
"luminance": 0.01547
}Semantic roles & 50–950 ramp
primary
#40120B
secondary
#2A727D
accent
#D6ED3A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877