Skip to content

#fb1f21

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

RGB
251, 31, 33
HSL
360°, 97%, 55%
CMYK
0, 88, 87, 2
Luminance
0.2160

Every format

HEX#fb1f21
RGBrgb(251, 31, 33)
HSLhsl(360, 97%, 55%)
CMYKcmyk(0%, 88%, 87%, 2%)
LABlab(53.6 76.4 56.6)
LCHlch(53.6 95.1 36.5)
OKLCHoklch(0.630 0.245 27.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fb1f21 on white: 3.95:1
AA ✗ fail · AA-large · AAA
Aa
#fb1f21 on black: 5.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green12.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta87.6%
Yellow86.9%
Key (black)1.6%

Color previews

#fb1f21 text on a black background

contrast 5.32:1

Card sample

#fb1f21 text on a white background

contrast 3.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fb1f21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fb1f21 in the Color Lab