Skip to content

#cf0c2f

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

RGB
207, 12, 47
HSL
349°, 89%, 43%
CMYK
0, 94, 77, 19
Luminance
0.1373

Every format

HEX#cf0c2f
RGBrgb(207, 12, 47)
HSLhsl(349, 89%, 43%)
CMYKcmyk(0%, 94%, 77%, 19%)
LABlab(43.9 68.2 37.0)
LCHlch(43.9 77.5 28.5)
OKLCHoklch(0.543 0.214 22.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf0c2f on white: 5.60:1
AA ✓ pass · AA-large · AAA
Aa
#cf0c2f on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green4.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta94.2%
Yellow77.3%
Key (black)18.8%

Color previews

#cf0c2f text on a black background

contrast 3.75:1

Card sample

#cf0c2f text on a white background

contrast 5.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf0c2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf0c2f in the Color Lab