Skip to content

#a40c2c

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

RGB
164, 12, 44
HSL
347°, 86%, 35%
CMYK
0, 93, 73, 36
Luminance
0.0834

Every format

HEX#a40c2c
RGBrgb(164, 12, 44)
HSLhsl(347, 86%, 35%)
CMYKcmyk(0%, 93%, 73%, 36%)
LABlab(34.7 57.0 25.9)
LCHlch(34.7 62.7 24.5)
OKLCHoklch(0.459 0.178 19.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red64.3%
Green4.7%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta92.7%
Yellow73.2%
Key (black)35.7%

Color previews

#a40c2c text on a black background

contrast 2.67:1

Card sample

#a40c2c text on a white background

contrast 7.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a40c2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a40c2c in the Color Lab