Skip to content

#ec1f39

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

RGB
236, 31, 57
HSL
352°, 84%, 52%
CMYK
0, 87, 76, 8
Luminance
0.1911

Every format

HEX#ec1f39
RGBrgb(236, 31, 57)
HSLhsl(352, 84%, 52%)
CMYKcmyk(0%, 87%, 76%, 8%)
LABlab(50.8 73.2 40.5)
LCHlch(50.8 83.6 29.0)
OKLCHoklch(0.605 0.231 22.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec1f39 on white: 4.36:1
AA ✗ fail · AA-large · AAA
Aa
#ec1f39 on black: 4.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green12.2%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta86.9%
Yellow75.8%
Key (black)7.5%

Color previews

#ec1f39 text on a black background

contrast 4.82:1

Card sample

#ec1f39 text on a white background

contrast 4.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec1f39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec1f39 in the Color Lab