Skip to content

#df2a2f

a balanced, vivid red · warm · closest name: crimson

RGB
223, 42, 47
HSL
358°, 74%, 52%
CMYK
0, 81, 79, 13
Luminance
0.1755

Every format

HEX#df2a2f
RGBrgb(223, 42, 47)
HSLhsl(358, 74%, 52%)
CMYKcmyk(0%, 81%, 79%, 13%)
LABlab(49.0 67.1 43.3)
LCHlch(49.0 79.8 32.9)
OKLCHoklch(0.586 0.214 25.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df2a2f on white: 4.66:1
AA ✓ pass · AA-large · AAA
Aa
#df2a2f on black: 4.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green16.5%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta81.2%
Yellow78.9%
Key (black)12.5%

Color previews

#df2a2f text on a black background

contrast 4.51:1

Card sample

#df2a2f text on a white background

contrast 4.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df2a2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df2a2f in the Color Lab