#840b21
a dark, electric red · warm · closest name: maroon
RGB
132, 11, 33
HSL
349°, 85%, 28%
CMYK
0, 92, 75, 48
Luminance
0.0525
Every format
| HEX | #840b21 |
| RGB | rgb(132, 11, 33) |
| HSL | hsl(349, 85%, 28%) |
| CMYK | cmyk(0%, 92%, 75%, 48%) |
| LAB | lab(27.4 48.0 22.8) |
| LCH | lch(27.4 53.2 25.4) |
| OKLCH | oklch(0.393 0.150 20.2) |
Copy-ready code
/* CSS */
color: #840b21;
background-color: #840b21;
/* Tailwind (arbitrary) */
class="text-[#840b21] bg-[#840b21]"
/* SCSS */
$brand: #840b21;
/* SwiftUI */
Color(red: 0.518, green: 0.043, blue: 0.129)
/* Android */
Color.parseColor("#840b21")Accessibility — WCAG contrast
Aa
#840b21 on white: 10.24:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#840b21 on black: 2.05:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red51.8%
Green4.3%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta91.7%
Yellow75.0%
Key (black)48.2%
Color previews
#840b21 text on a black background
contrast 2.05:1
Card sample
#840b21 text on a white background
contrast 10.24:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #840b21;
Background color
Panel with #840b21 background
background-color: #840b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #840b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(132, 11, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(132, 11, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #840b21; background: linear-gradient(135deg, #840b21, #84460B);