Skip to content

#ba2f25

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

RGB
186, 47, 37
HSL
4°, 67%, 44%
CMYK
0, 75, 80, 27
Luminance
0.1261

Every format

HEX#ba2f25
RGBrgb(186, 47, 37)
HSLhsl(4, 67%, 44%)
CMYKcmyk(0%, 75%, 80%, 27%)
LABlab(42.2 54.4 39.6)
LCHlch(42.2 67.3 36.0)
OKLCHoklch(0.522 0.177 28.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2f25 on white: 5.96:1
AA ✓ pass · AA-large · AAA
Aa
#ba2f25 on black: 3.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green18.4%
Blue14.5%

CMYK percentages

Cyan0.0%
Magenta74.7%
Yellow80.1%
Key (black)27.1%

Color previews

#ba2f25 text on a black background

contrast 3.52:1

Card sample

#ba2f25 text on a white background

contrast 5.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2f25

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2f25 in the Color Lab