Skip to content

#ba2d1f

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

RGB
186, 45, 31
HSL
5°, 71%, 43%
CMYK
0, 76, 83, 27
Luminance
0.1241

Every format

HEX#ba2d1f
RGBrgb(186, 45, 31)
HSLhsl(5, 71%, 43%)
CMYKcmyk(0%, 76%, 83%, 27%)
LABlab(41.9 54.9 42.5)
LCHlch(41.9 69.4 37.7)
OKLCHoklch(0.520 0.180 30.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2d1f on white: 6.03:1
AA ✓ pass · AA-large · AAA
Aa
#ba2d1f on black: 3.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green17.6%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta75.8%
Yellow83.3%
Key (black)27.1%

Color previews

#ba2d1f text on a black background

contrast 3.48:1

Card sample

#ba2d1f text on a white background

contrast 6.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2d1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2d1f in the Color Lab