Skip to content

#db021f

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

RGB
219, 2, 31
HSL
352°, 98%, 43%
CMYK
0, 99, 86, 14
Luminance
0.1520

At a glance

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

Hex
#db021f
Hue
352°
red
Saturation
98%
electric
Lightness
43%
dark
Brightness
86%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1520
WCAG relative
Temperature
Warm
21/100 cool
Color family
Red
Tone
Electric
Best ink
White
5.20:1
Closest name
Crimson
ΔE2000 6.6
Where it sits
Hue352° of 360°
Saturation98%
Lightness43%
Temperature
Warm ← → Cool21% 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#db021f
RGBrgb(219, 2, 31)
HSLhsl(352, 98%, 43%)
CMYKcmyk(0%, 99%, 86%, 14%)
LABlab(45.9 71.6 48.6)
LCHlch(45.9 86.5 34.2)
OKLCHoklch(0.562 0.228 25.9)
Decimal14352927
Display P3color(display-p3 0.859 0.008 0.122)

Copy-ready code

/* CSS */
color: #db021f;
background-color: #db021f;
/* Tailwind (arbitrary) */
class="text-[#db021f] bg-[#db021f]"
/* SCSS */
$brand: #db021f;
/* SwiftUI */
Color(red: 0.859, green: 0.008, blue: 0.122)
/* Android */
Color.parseColor("#db021f")
/* Flutter */
Color(0xFFDB021F)
/* Python / OpenCV (BGR) */
(31, 2, 219)

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 #db021f · 5.20:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.20:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.04:1
AA fail · AA large pass · AAA fail
Reading the other direction: #db021f as text scores 5.20:1 on white and 4.04:1 on black.

Accessibility — WCAG contrast

Aa
#db021f on white: 5.20:1
AA ✓ pass · AA-large · AAA
Aa
#db021f on black: 4.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5B511C
deuteranopia · #8B7B0F
tritanopia · #F20016

Color scale — 50 to 950

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

#FDF1F3
#FCE3E7
#FBC1C8
#FE909F
#FD586E
#FD213E
#F30222
#db021f
#A20117
#740615
#49040D
Base = 700Lightest = 50 · #FDF1F3Darkest = 950 · #49040D
:root {
  --brand-50: #FDF1F3;
  --brand-100: #FCE3E7;
  --brand-200: #FBC1C8;
  --brand-300: #FE909F;
  --brand-400: #FD586E;
  --brand-500: #FD213E;
  --brand-600: #F30222;
  --brand-700: #db021f;
  --brand-800: #A20117;
  --brand-900: #740615;
  --brand-950: #49040D;
  --brand: #db021f;
  --brand-ink: #ffffff;
}

Colors that work with #db021f

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#EDC0C6
Hairlines and dividers
Muted text#9B4B55
Captions on the surface
Accent#00CC7D
Second voice, not a rival
Dark variant#7E0112
Hover, pressed, headers
Light variant#FFE6E9
Selected rows, tints
Dark surface#241416
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 #db021f

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#02DBBE
Analogous left#DB028B
Analogous right#DB5202
Split-complement 1#02DB52
Split-complement 2#028BDB
Triadic 1#1FDB02
Triadic 2#021FDB
Tetradic#8BDB02

RGB percentages

Red85.9%
Green0.8%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta99.1%
Yellow85.8%
Key (black)14.1%

Color previews

#db021f text on a black background

contrast 4.04:1

Card sample

#db021f text on a white background

contrast 5.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #db021f

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.

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

#db021f, answered

What color is #db021f?

#db021f is a dark electric red, closest to Crimson (ΔE2000 6.6). It sits at 352° on the hue wheel with 98% saturation and 43% lightness, which reads as warm.

What is the RGB value of #db021f?

rgb(219, 2, 31) — 219 red, 2 green and 31 blue out of 255, or 85.9% / 0.8% / 12.2% by channel.

Is #db021f a light or a dark color?

It is a dark color. Relative luminance is 0.1520 and perceived brightness is 47%, so white text on it reaches 5.20:1.

Should I use black or white text on #db021f?

White. It scores 5.20:1 against #db021f, versus 4.04:1 for black — AA at any size.

What is the complementary color of #db021f?

#02DBBE sits directly opposite on the wheel. Softer options are the split-complements #02DB52 and #028BDB, which give the same contrast with far less vibration.

What colors go well with #db021f?

For interface work: #FAF4F5 as the surface, #EDC0C6 for borders, #9B4B55 for secondary text, #00CC7D as an accent and #7E0112 for hover and pressed states. For a palette, the analogous pair #DB028B and #DB5202 stays calm, while #02DBBE is the loudest partner.

What is #db021f in CMYK for printing?

cmyk(0%, 99%, 86%, 14%). 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 #db021f warm or cool?

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

Work with #db021f in the Color Lab