Skip to content

#df0c2a

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

RGB
223, 12, 42
HSL
352°, 90%, 46%
CMYK
0, 95, 81, 13
Luminance
0.1612

Every format

HEX#df0c2a
RGBrgb(223, 12, 42)
HSLhsl(352, 90%, 46%)
CMYKcmyk(0%, 95%, 81%, 13%)
LABlab(47.1 72.0 44.3)
LCHlch(47.1 84.5 31.6)
OKLCHoklch(0.572 0.228 24.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df0c2a on white: 4.97:1
AA ✓ pass · AA-large · AAA
Aa
#df0c2a on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green4.7%
Blue16.5%

CMYK percentages

Cyan0.0%
Magenta94.6%
Yellow81.2%
Key (black)12.5%

Color previews

#df0c2a text on a black background

contrast 4.22:1

Card sample

#df0c2a text on a white background

contrast 4.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df0c2a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df0c2a in the Color Lab