#540F1F#540F1F
#540F1F is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.8% C 0.100 H 12.7°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).
Color values
| HEX | #540F1F |
|---|---|
| RGB | rgb(84, 15, 31) |
| HSL | hsl(346, 70%, 19%) |
| HSV | hsv(346, 82%, 33%) |
| CMYK | cmyk(0%, 82.1%, 63.1%, 67.1%) |
| CIE-LAB | lab(17.11, 32.27, 8.82) |
| CIE-LCH | lch(17.11, 33.45, 15.29°) |
| OKLab | oklab(29.82% 0.0974 0.0219) |
| OKLCH | oklch(29.82% 0.1 12.7) |
| XYZ | xyz(4.0747, 2.3260, 1.5305) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Burgundy (survey)
#610023
ΔE00 3.58
Maroon (survey)
#650021
ΔE00 4.00
Dark Maroon
#3C0008
ΔE00 5.76
Claret
#680018
ΔE00 6.15
Deep Brown
#410200
ΔE00 7.03
Dried Blood
#4B0101
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#540F1F #0F5444
analogous
#540F42 #540F1F #54220F
triadic
#540F1F #1F540F #0F1F54
tetradic
#540F1F #42540F #0F5444 #220F54
square
#540F1F #42540F #0F5444 #220F54
split-complementary
#540F1F #0F5422 #0F4254
monochromatic
#1A050A #20060C #540F1F #881832 #BC2245
Accessibility & contrast
On white
14.33
#540F1F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#540F1F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #540F1F
14.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##540F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##540F1F | 1.00 | 14.33 | 1.47 | 14.33 |
| #FFFFFF | 14.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#22211F
Deuteranopia (green-blind)
#332F1D
Tritanopia (blue-blind)
#5D0016
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #540f1f; /* rgb */ color: rgb(84, 15, 31); /* oklch */ color: oklch(29.8% 0.100 12.7);
Tailwind
colors: {
custom: {
50: '#89555a',
500: '#540f1f',
950: '#000000',
},
}SCSS
$custom: #540f1f; $custom-light: #89555a; $custom-dark: #000000;
JSON
{
"hex": "#540f1f",
"rgb": {
"r": 84,
"g": 15,
"b": 31
},
"hsl": {
"h": 346.087,
"s": 69.697,
"l": 19.412
},
"oklch": {
"l": 0.29815,
"c": 0.09979,
"h": 12.7
},
"luminance": 0.02325
}Semantic roles & 50–950 ramp
primary
#540F1F
secondary
#318E78
accent
#EDC33B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878