#310404#310404
#310404 is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.4% C 0.073 H 26.6°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).
Color values
| HEX | #310404 |
|---|---|
| RGB | rgb(49, 4, 4) |
| HSL | hsl(0, 85%, 10%) |
| HSV | hsv(0, 92%, 19%) |
| CMYK | cmyk(0%, 91.8%, 91.8%, 80.8%) |
| CIE-LAB | lab(6.76, 22.43, 8.96) |
| CIE-LCH | lch(6.76, 24.15, 21.76°) |
| OKLab | oklab(20.44% 0.0653 0.0327) |
| OKLCH | oklch(20.44% 0.073 26.6) |
| XYZ | xyz(1.3321, 0.7488, 0.1892) |
| Luminance | 0.0075 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Dark Maroon
#3C0008
ΔE00 3.39
Deep Brown
#410200
ΔE00 5.27
Mahogany
#4A0100
ΔE00 7.60
Dried Blood
#4B0101
ΔE00 7.72
Very Dark Brown
#1D0200
ΔE00 9.11
Burgundy (survey)
#610023
ΔE00 11.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#310404 #043131
analogous
#31041A #310404 #311A04
triadic
#310404 #043104 #040431
tetradic
#310404 #1A3104 #043131 #1A0431
square
#310404 #1A3104 #043131 #1A0431
split-complementary
#310404 #04311A #041A31
monochromatic
#1C0202 #1C0202 #310404 #6A0909 #A20D0D
Accessibility & contrast
On white
18.26
#310404 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.15
#310404 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #310404
18.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##310404 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##310404 | 1.00 | 18.26 | 1.15 | 18.26 |
| #FFFFFF | 18.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 18.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#110F04
Deuteranopia (green-blind)
#1D1903
Tritanopia (blue-blind)
#370004
Achromatopsia (no color)
#151515
Design tokens & code
CSS
--color: #310404; /* rgb */ color: rgb(49, 4, 4); /* oklch */ color: oklch(20.4% 0.073 26.6);
Tailwind
colors: {
custom: {
50: '#6d4848',
500: '#310404',
950: '#000000',
},
}SCSS
$custom: #310404; $custom-light: #6d4848; $custom-dark: #000000;
JSON
{
"hex": "#310404",
"rgb": {
"r": 49,
"g": 4,
"b": 4
},
"hsl": {
"h": 0,
"s": 84.906,
"l": 10.392
},
"oklch": {
"l": 0.20442,
"c": 0.07304,
"h": 26.6
},
"luminance": 0.00749
}Semantic roles & 50–950 ramp
primary
#310404
secondary
#1D7373
accent
#FBFB2D
background
#F6F4F4
surface
#ECE6E6
border
#C7C2C2
text
#070100
muted
#7A7777