#b51f21
a dark, vivid red · warm · “firebrick”
RGB
181, 31, 33
HSL
359°, 71%, 42%
CMYK
0, 83, 82, 29
Luminance
0.1091
Every format
| HEX | #b51f21 |
| RGB | rgb(181, 31, 33) |
| HSL | hsl(359, 71%, 42%) |
| CMYK | cmyk(0%, 83%, 82%, 29%) |
| LAB | lab(39.4 57.5 38.7) |
| LCH | lch(39.4 69.4 33.9) |
| OKLCH | oklch(0.500 0.185 26.6) |
Copy-ready code
/* CSS */
color: #b51f21;
background-color: #b51f21;
/* Tailwind (arbitrary) */
class="text-[#b51f21] bg-[#b51f21]"
/* SCSS */
$brand: #b51f21;
/* SwiftUI */
Color(red: 0.710, green: 0.122, blue: 0.129)
/* Android */
Color.parseColor("#b51f21")Accessibility — WCAG contrast
Aa
#b51f21 on white: 6.60:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#b51f21 on black: 3.18:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red71.0%
Green12.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta82.9%
Yellow81.8%
Key (black)29.0%
Color previews
#b51f21 text on a black background
contrast 3.18:1
Card sample
#b51f21 text on a white background
contrast 6.60:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b51f21;
Background color
Panel with #b51f21 background
background-color: #b51f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b51f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(181, 31, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(181, 31, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b51f21; background: linear-gradient(135deg, #b51f21, #B5811F);