#D31F34

Closest named color: Crimson (#DC143C). oklch(55.8% 0.21 22.7), rgb(211, 31, 52).

Aa

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

About this color

#D31F34 is a medium-dark, vivid red. In OKLCH its lightness is 56%, its chroma 0.210 and its hue 23°. Its hue sits on the warm side of the wheel. The nearest named color is Crimson (#DC143C), ΔE 0.020 away. White text reads best on it, at 5.22:1.

Hue familyReds
Lightnessmedium-dark (56%)
Chromavivid (0.210)
Temperaturewarm
Nearest nameCrimson (#DC143C)
Black text4.01:1
White text5.22:1

Values

HEX#D31F34
RGBrgb(211, 31, 52)
HSLhsl(353, 74%, 47%)
OKLCHoklch(55.8% 0.21 22.7)

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 #D31F34 5.22:1 AA Lc -79.4 Fine for body text
Black text on #D31F34 4.01:1 AA large text Lc 30.1 Non-text elements, placeholder text
#D31F34 text on white 5.22:1 AA Lc 74.0 Content text, not long reading
#D31F34 text on black 4.01:1 AA large text Lc -27.7 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

    #FCE3E1

    oklch(93.6% 0.028 23.2)

  3. Step 200

    200

    #FACCC9

    oklch(88.4% 0.052 22.6)

  4. Step 300

    300

    #F8A9A4

    oklch(81% 0.094 23.4)

  5. Step 400

    400

    #F07674

    oklch(70.7% 0.151 22.6)

  6. Step 500

    500

    #E74A50

    oklch(63.1% 0.193 22.6)

  7. Step 600

    600 (this color)

    #D31F34

    oklch(55.8% 0.21 22.7)

  8. Step 700

    700

    #B50726

    oklch(49% 0.195 22.7)

  9. Step 800

    800

    #931121

    oklch(42.6% 0.161 22.6)

  10. Step 900

    900

    #761A20

    oklch(37.6% 0.126 22.5)

  11. Step 950

    950

    #461213

    oklch(27.1% 0.08 23.1)

Export this scale for Tailwind in the Tailwind colors tool

#D31F34 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)#5C54330.231
Deuteranopia (no green cones)#877A2D0.211
Tritanopia (no blue cones)#E8002A0.040
Achromatopsia (no color)#6C6C6C0.212

Harmonies

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

Complementary

The opposite hue (180°).

  • #D31F34

    #D31F34

    oklch(55.8% 0.21 22.7)

  • #00848C

    #00848C

    oklch(55.8% 0.095 202.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D31F34

    #D31F34

    oklch(55.8% 0.21 22.7)

  • #C7237F

    #C7237F

    oklch(55.8% 0.21 352.7)

  • #B25700

    #B25700

    oklch(55.8% 0.142 52.8)

Open the analogous palette in the generator

Split complementary

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

  • #D31F34

    #D31F34

    oklch(55.8% 0.21 22.7)

  • #00886D

    #00886D

    oklch(55.8% 0.108 172.3)

  • #007EAC

    #007EAC

    oklch(55.8% 0.115 233)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D31F34

    #D31F34

    oklch(55.8% 0.21 22.7)

  • #008D05

    #008D05

    oklch(55.8% 0.188 142.7)

  • #2A68EC

    #2A68EC

    oklch(55.8% 0.21 262.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D31F34

    #D31F34

    oklch(55.8% 0.21 22.7)

  • #757B00

    #757B00

    oklch(55.9% 0.125 113.1)

  • #00848C

    #00848C

    oklch(55.8% 0.095 202.3)

  • #7D4FE1

    #7D4FE1

    oklch(55.8% 0.21 292.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #D31F34 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.