Skip to content

#d40c2d

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

RGB
212, 12, 45
HSL
350°, 89%, 44%
CMYK
0, 94, 79, 17
Luminance
0.1445

Every format

HEX#d40c2d
RGBrgb(212, 12, 45)
HSLhsl(350, 89%, 44%)
CMYKcmyk(0%, 94%, 79%, 17%)
LABlab(44.9 69.3 39.5)
LCHlch(44.9 79.8 29.7)
OKLCHoklch(0.552 0.219 23.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d40c2d on white: 5.40:1
AA ✓ pass · AA-large · AAA
Aa
#d40c2d on black: 3.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green4.7%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta94.3%
Yellow78.8%
Key (black)16.9%

Color previews

#d40c2d text on a black background

contrast 3.89:1

Card sample

#d40c2d text on a white background

contrast 5.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d40c2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d40c2d in the Color Lab