Skip to content

#ff281f

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

RGB
255, 40, 31
HSL
2°, 100%, 56%
CMYK
0, 84, 88, 0
Luminance
0.2288

Every format

HEX#ff281f
RGBrgb(255, 40, 31)
HSLhsl(2, 100%, 56%)
CMYKcmyk(0%, 84%, 88%, 0%)
LABlab(55.0 75.8 58.8)
LCHlch(55.0 95.9 37.8)
OKLCHoklch(0.641 0.245 29.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff281f on white: 3.77:1
AA ✗ fail · AA-large · AAA
Aa
#ff281f on black: 5.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green15.7%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta84.3%
Yellow87.8%
Key (black)0.0%

Color previews

#ff281f text on a black background

contrast 5.58:1

Card sample

#ff281f text on a white background

contrast 3.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff281f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff281f in the Color Lab