Skip to content

#df0c1f

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

RGB
223, 12, 31
HSL
355°, 90%, 46%
CMYK
0, 95, 86, 13
Luminance
0.1605

Every format

HEX#df0c1f
RGBrgb(223, 12, 31)
HSLhsl(355, 90%, 46%)
CMYKcmyk(0%, 95%, 86%, 13%)
LABlab(47.0 71.7 49.9)
LCHlch(47.0 87.4 34.8)
OKLCHoklch(0.571 0.229 26.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df0c1f on white: 4.99:1
AA ✓ pass · AA-large · AAA
Aa
#df0c1f on black: 4.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green4.7%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta94.6%
Yellow86.1%
Key (black)12.5%

Color previews

#df0c1f text on a black background

contrast 4.21:1

Card sample

#df0c1f text on a white background

contrast 4.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df0c1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df0c1f in the Color Lab