#c40c39
a dark, electric red · warm · closest name: crimson
RGB
196, 12, 57
HSL
345°, 89%, 41%
CMYK
0, 94, 71, 23
Luminance
0.1229
Every format
| HEX | #c40c39 |
| RGB | rgb(196, 12, 57) |
| HSL | hsl(345, 89%, 41%) |
| CMYK | cmyk(0%, 94%, 71%, 23%) |
| LAB | lab(41.7 65.8 27.8) |
| LCH | lch(41.7 71.4 22.9) |
| OKLCH | oklch(0.523 0.205 18.3) |
Copy-ready code
/* CSS */
color: #c40c39;
background-color: #c40c39;
/* Tailwind (arbitrary) */
class="text-[#c40c39] bg-[#c40c39]"
/* SCSS */
$brand: #c40c39;
/* SwiftUI */
Color(red: 0.769, green: 0.047, blue: 0.224)
/* Android */
Color.parseColor("#c40c39")Accessibility — WCAG contrast
Aa
#c40c39 on white: 6.07:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#c40c39 on black: 3.46:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.9%
Green4.7%
Blue22.4%
CMYK percentages
Cyan0.0%
Magenta93.9%
Yellow70.9%
Key (black)23.1%
Color previews
#c40c39 text on a black background
contrast 3.46:1
Card sample
#c40c39 text on a white background
contrast 6.07:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c40c39;
Background color
Panel with #c40c39 background
background-color: #c40c39;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c40c39;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(196, 12, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 12, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c40c39; background: linear-gradient(135deg, #c40c39, #C45A0C);