#ba1f21
a dark, vivid red · warm · closest name: firebrick
RGB
186, 31, 33
HSL
359°, 71%, 43%
CMYK
0, 83, 82, 27
Luminance
0.1153
Every format
| HEX | #ba1f21 |
| RGB | rgb(186, 31, 33) |
| HSL | hsl(359, 71%, 43%) |
| CMYK | cmyk(0%, 83%, 82%, 27%) |
| LAB | lab(40.5 59.0 40.1) |
| LCH | lch(40.5 71.3 34.2) |
| OKLCH | oklch(0.510 0.189 26.8) |
Copy-ready code
/* CSS */
color: #ba1f21;
background-color: #ba1f21;
/* Tailwind (arbitrary) */
class="text-[#ba1f21] bg-[#ba1f21]"
/* SCSS */
$brand: #ba1f21;
/* SwiftUI */
Color(red: 0.729, green: 0.122, blue: 0.129)
/* Android */
Color.parseColor("#ba1f21")Accessibility — WCAG contrast
Aa
#ba1f21 on white: 6.35:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ba1f21 on black: 3.31:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green12.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta83.3%
Yellow82.3%
Key (black)27.1%
Color previews
#ba1f21 text on a black background
contrast 3.31:1
Card sample
#ba1f21 text on a white background
contrast 6.35:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba1f21;
Background color
Panel with #ba1f21 background
background-color: #ba1f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba1f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 31, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 31, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba1f21; background: linear-gradient(135deg, #ba1f21, #BA841F);