Skip to content

#df020c

a dark, electric red · warm · closest name: Red

RGB
223, 2, 12
HSL
357°, 98%, 44%
CMYK
0, 99, 95, 13
Luminance
0.1576

At a glance

Every number on this page in one read: what #df020c is made of, how bright it looks, and which way it leans.

Hex
#df020c
Hue
357°
red
Saturation
98%
electric
Lightness
44%
dark
Brightness
87%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1576
WCAG relative
Temperature
Warm
18/100 cool
Color family
Red
Tone
Electric
Best ink
White
5.06:1
Closest name
Red
ΔE2000 7.1
Where it sits
Hue357° of 360°
Saturation98%
Lightness44%
Temperature
Warm ← → Cool18% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#df020c
RGBrgb(223, 2, 12)
HSLhsl(357, 98%, 44%)
CMYKcmyk(0%, 99%, 95%, 13%)
LABlab(46.7 72.3 57.3)
LCHlch(46.7 92.2 38.4)
OKLCHoklch(0.568 0.232 28.4)
Decimal14615052
Display P3color(display-p3 0.875 0.008 0.047)

Copy-ready code

/* CSS */
color: #df020c;
background-color: #df020c;
/* Tailwind (arbitrary) */
class="text-[#df020c] bg-[#df020c]"
/* SCSS */
$brand: #df020c;
/* SwiftUI */
Color(red: 0.875, green: 0.008, blue: 0.047)
/* Android */
Color.parseColor("#df020c")
/* Flutter */
Color(0xFFDF020C)
/* Python / OpenCV (BGR) */
(12, 2, 223)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #df020c · 5.06:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.06:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.15:1
AA fail · AA large pass · AAA fail
Reading the other direction: #df020c as text scores 5.06:1 on white and 4.15:1 on black.

Accessibility — WCAG contrast

Aa
#df020c on white: 5.06:1
AA ✓ pass · AA-large · AAA
Aa
#df020c on black: 4.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5E5203
deuteranopia · #8E7E00
tritanopia · #F60010

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #df020c is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDF1F2
#FCE3E5
#FBC1C3
#FE9095
#FD5860
#FD212B
#df020c
#CA020B
#A20109
#74060B
#490407
Base = 600Lightest = 50 · #FDF1F2Darkest = 950 · #490407
:root {
  --brand-50: #FDF1F2;
  --brand-100: #FCE3E5;
  --brand-200: #FBC1C3;
  --brand-300: #FE9095;
  --brand-400: #FD5860;
  --brand-500: #FD212B;
  --brand-600: #df020c;
  --brand-700: #CA020B;
  --brand-800: #A20109;
  --brand-900: #74060B;
  --brand-950: #490407;
  --brand: #df020c;
  --brand-ink: #ffffff;
}

Colors that work with #df020c

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAF4F5
Tinted page background
Border#EDC0C2
Hairlines and dividers
Muted text#9B4B4E
Captions on the surface
Accent#00CC90
Second voice, not a rival
Dark variant#7E0107
Hover, pressed, headers
Light variant#FFE6E7
Selected rows, tints
Dark surface#241414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #df020c

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#02DFD5
Analogous left#DF027A
Analogous right#DF6702
Split-complement 1#02DF67
Split-complement 2#027ADF
Triadic 1#0CDF02
Triadic 2#020CDF
Tetradic#7ADF02

RGB percentages

Red87.5%
Green0.8%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta99.1%
Yellow94.6%
Key (black)12.5%

Color previews

#df020c text on a black background

contrast 4.15:1

Card sample

#df020c text on a white background

contrast 5.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df020c

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#df020c in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Food and drinkEntertainmentRetailSport
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#df020c, answered

What color is #df020c?

#df020c is a dark electric red, closest to Red (ΔE2000 7.1). It sits at 357° on the hue wheel with 98% saturation and 44% lightness, which reads as warm.

What is the RGB value of #df020c?

rgb(223, 2, 12) — 223 red, 2 green and 12 blue out of 255, or 87.5% / 0.8% / 4.7% by channel.

Is #df020c a light or a dark color?

It is a dark color. Relative luminance is 0.1576 and perceived brightness is 48%, so white text on it reaches 5.06:1.

Should I use black or white text on #df020c?

White. It scores 5.06:1 against #df020c, versus 4.15:1 for black — AA at any size.

What is the complementary color of #df020c?

#02DFD5 sits directly opposite on the wheel. Softer options are the split-complements #02DF67 and #027ADF, which give the same contrast with far less vibration.

What colors go well with #df020c?

For interface work: #FAF4F5 as the surface, #EDC0C2 for borders, #9B4B4E for secondary text, #00CC90 as an accent and #7E0107 for hover and pressed states. For a palette, the analogous pair #DF027A and #DF6702 stays calm, while #02DFD5 is the loudest partner.

What is #df020c in CMYK for printing?

cmyk(0%, 99%, 95%, 13%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #df020c warm or cool?

Warm — it scores 18 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF2E02; nudged cooler, #E1005D.

Work with #df020c in the Color Lab