Skip to content

#d02f2f

a balanced, vivid red · warm · closest name: firebrick

RGB
208, 47, 47
HSL
0°, 63%, 50%
CMYK
0, 77, 77, 18
Luminance
0.1565

Every format

HEX#d02f2f
RGBrgb(208, 47, 47)
HSLhsl(0, 63%, 50%)
CMYKcmyk(0%, 77%, 77%, 18%)
LABlab(46.5 61.4 39.9)
LCHlch(46.5 73.2 33.0)
OKLCHoklch(0.563 0.197 26.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d02f2f on white: 5.09:1
AA ✓ pass · AA-large · AAA
Aa
#d02f2f on black: 4.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green18.4%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta77.4%
Yellow77.4%
Key (black)18.4%

Color previews

#d02f2f text on a black background

contrast 4.13:1

Card sample

#d02f2f text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d02f2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02f2f in the Color Lab