Skip to content

#df040b

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

RGB
223, 4, 11
HSL
358°, 97%, 45%
CMYK
0, 98, 95, 13
Luminance
0.1580

At a glance

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

Hex
#df040b
Hue
358°
red
Saturation
97%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1580
WCAG relative
Temperature
Warm
18/100 cool
Color family
Red
Tone
Electric
Best ink
White
5.05:1
Closest name
Red
ΔE2000 7
Where it sits
Hue358° of 360°
Saturation97%
Lightness45%
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#df040b
RGBrgb(223, 4, 11)
HSLhsl(358, 97%, 45%)
CMYKcmyk(0%, 98%, 95%, 13%)
LABlab(46.7 72.1 57.6)
LCHlch(46.7 92.3 38.6)
OKLCHoklch(0.569 0.232 28.6)
Decimal14615563
Display P3color(display-p3 0.875 0.016 0.043)

Copy-ready code

/* CSS */
color: #df040b;
background-color: #df040b;
/* Tailwind (arbitrary) */
class="text-[#df040b] bg-[#df040b]"
/* SCSS */
$brand: #df040b;
/* SwiftUI */
Color(red: 0.875, green: 0.016, blue: 0.043)
/* Android */
Color.parseColor("#df040b")
/* Flutter */
Color(0xFFDF040B)
/* Python / OpenCV (BGR) */
(11, 4, 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 #df040b · 5.05:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.05:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.16:1
AA fail · AA large pass · AAA fail
Reading the other direction: #df040b as text scores 5.05:1 on white and 4.16:1 on black.

Accessibility — WCAG contrast

Aa
#df040b on white: 5.05:1
AA ✓ pass · AA-large · AAA
Aa
#df040b on black: 4.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5E5302
deuteranopia · #8E7E00
tritanopia · #F60010

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #df040b 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
#FCE4E4
#FBC1C3
#FD9194
#FC5A5F
#FB2329
#df040b
#C8040A
#A00308
#74070A
#480406
Base = 600Lightest = 50 · #FDF1F2Darkest = 950 · #480406
:root {
  --brand-50: #FDF1F2;
  --brand-100: #FCE4E4;
  --brand-200: #FBC1C3;
  --brand-300: #FD9194;
  --brand-400: #FC5A5F;
  --brand-500: #FB2329;
  --brand-600: #df040b;
  --brand-700: #C8040A;
  --brand-800: #A00308;
  --brand-900: #74070A;
  --brand-950: #480406;
  --brand: #df040b;
  --brand-ink: #ffffff;
}

Colors that work with #df040b

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#FAF4F4
Tinted page background
Border#EDC0C1
Hairlines and dividers
Muted text#9B4B4D
Captions on the surface
Accent#00CC93
Second voice, not a rival
Dark variant#7D0206
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 #df040b

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#04DFD8
Analogous left#DF0478
Analogous right#DF6B04
Split-complement 1#04DF6B
Split-complement 2#0478DF
Triadic 1#0BDF04
Triadic 2#040BDF
Tetradic#78DF04

RGB percentages

Red87.5%
Green1.6%
Blue4.3%

CMYK percentages

Cyan0.0%
Magenta98.2%
Yellow95.1%
Key (black)12.5%

Color previews

#df040b text on a black background

contrast 4.16:1

Card sample

#df040b text on a white background

contrast 5.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df040b

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.

#df040b 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.

#df040b, answered

What color is #df040b?

#df040b is a dark electric red, closest to Red (ΔE2000 7). It sits at 358° on the hue wheel with 97% saturation and 45% lightness, which reads as warm.

What is the RGB value of #df040b?

rgb(223, 4, 11) — 223 red, 4 green and 11 blue out of 255, or 87.5% / 1.6% / 4.3% by channel.

Is #df040b a light or a dark color?

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

Should I use black or white text on #df040b?

White. It scores 5.05:1 against #df040b, versus 4.16:1 for black — AA at any size.

What is the complementary color of #df040b?

#04DFD8 sits directly opposite on the wheel. Softer options are the split-complements #04DF6B and #0478DF, which give the same contrast with far less vibration.

What colors go well with #df040b?

For interface work: #FAF4F4 as the surface, #EDC0C1 for borders, #9B4B4D for secondary text, #00CC93 as an accent and #7D0206 for hover and pressed states. For a palette, the analogous pair #DF0478 and #DF6B04 stays calm, while #04DFD8 is the loudest partner.

What is #df040b in CMYK for printing?

cmyk(0%, 98%, 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 #df040b 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 #DF3104; nudged cooler, #E1025B.

Work with #df040b in the Color Lab