#D31A2B

Closest named color: Cherry (#CF0234). oklch(55.5% 0.213 24.6), rgb(211, 26, 43).

Aa

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

About this color

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

Hue familyReds
Lightnessmedium-dark (55%)
Chromavivid (0.213)
Temperaturewarm
Nearest nameCherry (#CF0234)
Black text3.95:1
White text5.31:1

Values

HEX#D31A2B
RGBrgb(211, 26, 43)
HSLhsl(354, 78%, 46%)
OKLCHoklch(55.5% 0.213 24.6)

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 #D31A2B 5.31:1 AA Lc -79.7 Fine for body text
Black text on #D31A2B 3.95:1 AA large text Lc 29.8 Dividers and decoration only
#D31A2B text on white 5.31:1 AA Lc 74.3 Content text, not long reading
#D31A2B text on black 3.95:1 AA large text Lc -27.4 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

    #F9A8A2

    oklch(80.9% 0.097 24.1)

  5. Step 400

    400

    #F1766F

    oklch(70.8% 0.153 25)

  6. Step 500

    500

    #E84949

    oklch(63.1% 0.196 24.7)

  7. Step 600

    600 (this color)

    #D31A2B

    oklch(55.5% 0.213 24.6)

  8. Step 700

    700

    #B7021E

    oklch(49.2% 0.198 24.7)

  9. Step 800

    800

    #940F1B

    oklch(42.7% 0.164 24.6)

  10. Step 900

    900

    #771A1C

    oklch(37.7% 0.127 24.8)

  11. Step 950

    950

    #461111

    oklch(26.9% 0.081 24.4)

Export this scale for Tailwind in the Tailwind colors tool

#D31A2B 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)#5B52290.235
Deuteranopia (no green cones)#8779220.213
Tritanopia (no blue cones)#E900240.042
Achromatopsia (no color)#6B6B6B0.215

Harmonies

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

Complementary

The opposite hue (180°).

  • #D31A2B

    #D31A2B

    oklch(55.5% 0.213 24.6)

  • #00828D

    #00828D

    oklch(55.4% 0.095 205.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D31A2B

    #D31A2B

    oklch(55.5% 0.213 24.6)

  • #C81D7A

    #C81D7A

    oklch(55.4% 0.213 354.5)

  • #AE5800

    #AE5800

    oklch(55.4% 0.138 54.7)

Open the analogous palette in the generator

Split complementary

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

  • #D31A2B

    #D31A2B

    oklch(55.5% 0.213 24.6)

  • #00866F

    #00866F

    oklch(55.4% 0.104 175)

  • #007DAD

    #007DAD

    oklch(55.6% 0.117 234.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D31A2B

    #D31A2B

    oklch(55.5% 0.213 24.6)

  • #008C20

    #008C20

    oklch(55.6% 0.177 144.6)

  • #3165ED

    #3165ED

    oklch(55.5% 0.213 264.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D31A2B

    #D31A2B

    oklch(55.5% 0.213 24.6)

  • #727A00

    #727A00

    oklch(55.4% 0.125 114.3)

  • #00828D

    #00828D

    oklch(55.4% 0.095 205.2)

  • #7F4BDF

    #7F4BDF

    oklch(55.3% 0.213 294.5)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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