#D31B2F

Closest named color: Cherry (#CF0234). oklch(55.6% 0.212 23.7), rgb(211, 27, 47).

Aa

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

About this color

#D31B2F is a medium-dark, vivid red. In OKLCH its lightness is 56%, its chroma 0.212 and its hue 24°. Its hue sits on the warm side of the wheel. The nearest named color is Cherry (#CF0234), ΔE 0.020 away. White text reads best on it, at 5.29:1.

Hue familyReds
Lightnessmedium-dark (56%)
Chromavivid (0.212)
Temperaturewarm
Nearest nameCherry (#CF0234)
Black text3.96:1
White text5.29:1

Values

HEX#D31B2F
RGBrgb(211, 27, 47)
HSLhsl(353, 77%, 47%)
OKLCHoklch(55.6% 0.212 23.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 #D31B2F 5.29:1 AA Lc -79.6 Fine for body text
Black text on #D31B2F 3.96:1 AA large text Lc 29.9 Dividers and decoration only
#D31B2F text on white 5.29:1 AA Lc 74.2 Content text, not long reading
#D31B2F text on black 3.96:1 AA large text Lc -27.5 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

    #FBCCC8

    oklch(88.5% 0.054 23.9)

  4. Step 300

    300

    #F8A8A3

    oklch(80.8% 0.095 23.3)

  5. Step 400

    400

    #F17571

    oklch(70.6% 0.154 23.6)

  6. Step 500

    500

    #E8494C

    oklch(63.1% 0.196 23.7)

  7. Step 600

    600 (this color)

    #D31B2F

    oklch(55.6% 0.212 23.7)

  8. Step 700

    700

    #B60322

    oklch(49% 0.197 23.6)

  9. Step 800

    800

    #940F1E

    oklch(42.7% 0.163 23.6)

  10. Step 900

    900

    #771A1E

    oklch(37.8% 0.127 23.7)

  11. Step 950

    950

    #461112

    oklch(26.9% 0.081 23.4)

Export this scale for Tailwind in the Tailwind colors tool

#D31B2F 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)#5B532E0.234
Deuteranopia (no green cones)#8779270.212
Tritanopia (no blue cones)#E900260.042
Achromatopsia (no color)#6B6B6B0.214

Harmonies

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

Complementary

The opposite hue (180°).

  • #D31B2F

    #D31B2F

    oklch(55.6% 0.212 23.7)

  • #00838C

    #00838C

    oklch(55.6% 0.095 203.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D31B2F

    #D31B2F

    oklch(55.6% 0.212 23.7)

  • #C81F7C

    #C81F7C

    oklch(55.6% 0.212 353.9)

  • #B05700

    #B05700

    oklch(55.5% 0.14 53.4)

Open the analogous palette in the generator

Split complementary

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

  • #D31B2F

    #D31B2F

    oklch(55.6% 0.212 23.7)

  • #00876E

    #00876E

    oklch(55.6% 0.106 173.6)

  • #007DAC

    #007DAC

    oklch(55.5% 0.116 233.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D31B2F

    #D31B2F

    oklch(55.6% 0.212 23.7)

  • #008C16

    #008C16

    oklch(55.5% 0.182 143.6)

  • #2D66ED

    #2D66ED

    oklch(55.6% 0.213 263.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D31B2F

    #D31B2F

    oklch(55.6% 0.212 23.7)

  • #737A00

    #737A00

    oklch(55.5% 0.124 113.7)

  • #00838C

    #00838C

    oklch(55.6% 0.095 203.3)

  • #7E4DE0

    #7E4DE0

    oklch(55.6% 0.212 293.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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