Skip to content

#a40c2f

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

RGB
164, 12, 47
HSL
346°, 86%, 35%
CMYK
0, 93, 71, 36
Luminance
0.0836

Every format

HEX#a40c2f
RGBrgb(164, 12, 47)
HSLhsl(346, 86%, 35%)
CMYKcmyk(0%, 93%, 71%, 36%)
LABlab(34.7 57.2 24.1)
LCHlch(34.7 62.0 22.9)
OKLCHoklch(0.460 0.178 18.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a40c2f on white: 7.86:1
AA ✓ pass · AA-large · AAA
Aa
#a40c2f on black: 2.67:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.3%
Green4.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta92.7%
Yellow71.3%
Key (black)35.7%

Color previews

#a40c2f text on a black background

contrast 2.67:1

Card sample

#a40c2f text on a white background

contrast 7.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a40c2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a40c2f in the Color Lab