Skip to content

#cf1b2f

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

RGB
207, 27, 47
HSL
353°, 77%, 46%
CMYK
0, 87, 77, 19
Luminance
0.1425

Every format

HEX#cf1b2f
RGBrgb(207, 27, 47)
HSLhsl(353, 77%, 46%)
CMYKcmyk(0%, 87%, 77%, 19%)
LABlab(44.6 66.0 37.8)
LCHlch(44.6 76.0 29.8)
OKLCHoklch(0.548 0.209 23.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf1b2f on white: 5.45:1
AA ✓ pass · AA-large · AAA
Aa
#cf1b2f on black: 3.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green10.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta87.0%
Yellow77.3%
Key (black)18.8%

Color previews

#cf1b2f text on a black background

contrast 3.85:1

Card sample

#cf1b2f text on a white background

contrast 5.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf1b2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf1b2f in the Color Lab