Skip to content

#cc0f2f

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

RGB
204, 15, 47
HSL
350°, 86%, 43%
CMYK
0, 93, 77, 20
Luminance
0.1338

Every format

HEX#cc0f2f
RGBrgb(204, 15, 47)
HSLhsl(350, 86%, 43%)
CMYKcmyk(0%, 93%, 77%, 20%)
LABlab(43.3 67.1 36.2)
LCHlch(43.3 76.2 28.4)
OKLCHoklch(0.538 0.211 22.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc0f2f on white: 5.71:1
AA ✓ pass · AA-large · AAA
Aa
#cc0f2f on black: 3.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green5.9%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta92.6%
Yellow77.0%
Key (black)20.0%

Color previews

#cc0f2f text on a black background

contrast 3.68:1

Card sample

#cc0f2f text on a white background

contrast 5.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc0f2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc0f2f in the Color Lab