#D40D17

Closest named color: Cherry (#CF0234). oklch(55% 0.22 27.5), rgb(212, 13, 23).

Aa

White text reads best on this color (5.42:1).

About this color

#D40D17 is a medium-dark, vivid red. In OKLCH its lightness is 55%, its chroma 0.220 and its hue 28°. Its hue sits on the warm side of the wheel. The nearest named color is Cherry (#CF0234), ΔE 0.029 away. White text reads best on it, at 5.42:1.

Hue familyReds
Lightnessmedium-dark (55%)
Chromavivid (0.220)
Temperaturewarm
Nearest nameCherry (#CF0234)
Black text3.86:1
White text5.42:1

Values

HEX#D40D17
RGBrgb(212, 13, 23)
HSLhsl(357, 88%, 44%)
OKLCHoklch(55% 0.22 27.5)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #D40D17 5.42:1 AA Lc -79.9 Fine for body text
Black text on #D40D17 3.86:1 AA large text Lc 29.5 Dividers and decoration only
#D40D17 text on white 5.42:1 AA Lc 74.5 Content text, not long reading
#D40D17 text on black 3.86:1 AA large text Lc -27.2 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 600.

  1. Step 50

    50

    #FEF2F1

    oklch(97% 0.013 23.2)

  2. Step 100

    100

    #FDE3DF

    oklch(93.6% 0.029 28.1)

  3. Step 200

    200

    #FCCCC5

    oklch(88.5% 0.056 27.9)

  4. Step 300

    300

    #FAA89D

    oklch(80.9% 0.099 27.8)

  5. Step 400

    400

    #F37468

    oklch(70.6% 0.159 27.3)

  6. Step 500

    500

    #EB463E

    oklch(63.1% 0.203 27.4)

  7. Step 600

    600 (this color)

    #D40D17

    oklch(55% 0.22 27.5)

  8. Step 700

    700

    #B7000E

    oklch(49% 0.2 27.6)

  9. Step 800

    800

    #96090E

    oklch(42.7% 0.169 27.6)

  10. Step 900

    900

    #781815

    oklch(37.7% 0.131 27.5)

  11. Step 950

    950

    #47110D

    oklch(27% 0.083 28.2)

Export this scale for Tailwind in the Tailwind colors tool

#D40D17 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#5A50120.242
Deuteranopia (no green cones)#8778020.218
Tritanopia (no blue cones)#EA00170.044
Achromatopsia (no color)#6A6A6A0.222

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #D40D17

    #D40D17

    oklch(55% 0.22 27.5)

  • #00818E

    #00818E

    oklch(55.1% 0.095 207.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D40D17

    #D40D17

    oklch(55% 0.22 27.5)

  • #CB0C72

    #CB0C72

    oklch(55.1% 0.22 357.6)

  • #A95A00

    #A95A00

    oklch(55% 0.132 57.8)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #D40D17

    #D40D17

    oklch(55% 0.22 27.5)

  • #008571

    #008571

    oklch(55.1% 0.102 177.2)

  • #007AAF

    #007AAF

    oklch(55% 0.121 237.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D40D17

    #D40D17

    oklch(55% 0.22 27.5)

  • #008933

    #008933

    oklch(54.9% 0.161 147.6)

  • #3B5FEF

    #3B5FEF

    oklch(54.9% 0.22 267.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D40D17

    #D40D17

    oklch(55% 0.22 27.5)

  • #6C7B00

    #6C7B00

    oklch(55.1% 0.128 117.9)

  • #00818E

    #00818E

    oklch(55.1% 0.095 207.2)

  • #8445DE

    #8445DE

    oklch(55% 0.22 297.5)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #D40D17, closest first.

No curated palette has a color within ΔE 0.04 of #D40D17.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #D40D17 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.