Skip to content

#ba1f39

a dark, vivid red · warm · closest name: firebrick

RGB
186, 31, 57
HSL
350°, 71%, 43%
CMYK
0, 83, 69, 27
Luminance
0.1171

Every format

HEX#ba1f39
RGBrgb(186, 31, 57)
HSLhsl(350, 71%, 43%)
CMYKcmyk(0%, 83%, 69%, 27%)
LABlab(40.8 59.9 26.3)
LCHlch(40.8 65.4 23.7)
OKLCHoklch(0.513 0.187 19.1)

Copy-ready code

/* CSS */
color: #ba1f39;
background-color: #ba1f39;
/* Tailwind (arbitrary) */
class="text-[#ba1f39] bg-[#ba1f39]"
/* SCSS */
$brand: #ba1f39;
/* SwiftUI */
Color(red: 0.729, green: 0.122, blue: 0.224)
/* Android */
Color.parseColor("#ba1f39")

Accessibility — WCAG contrast

Aa
#ba1f39 on white: 6.28:1
AA ✓ pass · AA-large · AAA
Aa
#ba1f39 on black: 3.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green12.2%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta83.3%
Yellow69.4%
Key (black)27.1%

Color previews

#ba1f39 text on a black background

contrast 3.34:1

Card sample

#ba1f39 text on a white background

contrast 6.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #ba1f39;
Background color
Panel with #ba1f39 background
background-color: #ba1f39;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #ba1f39;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(186, 31, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 31, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba1f39;
background: linear-gradient(135deg, #ba1f39, #BA6C1F);

Monochromatic scale

Palettes built from #ba1f39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba1f39 in the Color Lab