#40171C

Closest named color: Chocolate Brown (#411900). oklch(26.9% 0.064 15), rgb(64, 23, 28).

Aa

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

About this color

#40171C is a dark, muted red. In OKLCH its lightness is 27%, its chroma 0.064 and its hue 15°. Its hue sits on the warm side of the wheel. The nearest named color is Chocolate Brown (#411900), ΔE 0.041 away. White text reads best on it, at 15.47:1.

Hue familyReds
Lightnessdark (27%)
Chromamuted (0.064)
Temperaturewarm
Nearest nameChocolate Brown (#411900)
Black text1.35:1
White text15.47:1

Values

HEX#40171C
RGBrgb(64, 23, 28)
HSLhsl(353, 47%, 17%)
OKLCHoklch(26.9% 0.064 15)

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 #40171C 15.47:1 AAA Lc -104.8 Preferred for body text
Black text on #40171C 1.35:1 Fails Lc 0.0 Not readable
#40171C text on white 15.47:1 AAA Lc 102.1 Preferred for body text
#40171C text on black 1.35:1 Fails Lc 0.0 Not readable

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 950.

  1. Step 50

    50

    #FCF3F3

    oklch(97.1% 0.01 17.3)

  2. Step 100

    100

    #F8E4E5

    oklch(93.5% 0.022 14.1)

  3. Step 200

    200

    #F4CED0

    oklch(88.4% 0.043 14.4)

  4. Step 300

    300

    #EDADB1

    oklch(80.8% 0.075 14.7)

  5. Step 400

    400

    #E27F88

    oklch(70.7% 0.122 14.9)

  6. Step 500

    500

    #D65B6B

    oklch(63.1% 0.155 14.8)

  7. Step 600

    600

    #C13C53

    oklch(55.5% 0.169 14.6)

  8. Step 700

    700

    #A72D43

    oklch(49.2% 0.157 15)

  9. Step 800

    800

    #872737

    oklch(42.6% 0.13 15)

  10. Step 900

    900

    #6D2630

    oklch(37.7% 0.101 14.9)

  11. Step 950

    950 (this color)

    #40171C

    oklch(26.9% 0.064 15)

Export this scale for Tailwind in the Tailwind colors tool

#40171C 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)#201F1C0.070
Deuteranopia (no green cones)#2A271B0.064
Tritanopia (no blue cones)#4611190.017
Achromatopsia (no color)#2424240.065

Harmonies

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

Complementary

The opposite hue (180°).

  • #40171C

    #40171C

    oklch(26.9% 0.064 15)

  • #002D2D

    #002D2D

    oklch(26.9% 0.046 194.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40171C

    #40171C

    oklch(26.9% 0.064 15)

  • #3B182D

    #3B182D

    oklch(26.9% 0.063 345.2)

  • #3F1A08

    #3F1A08

    oklch(26.9% 0.064 44.5)

Open the analogous palette in the generator

Split complementary

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

  • #40171C

    #40171C

    oklch(26.9% 0.064 15)

  • #002F1F

    #002F1F

    oklch(27% 0.057 164.4)

  • #002B39

    #002B39

    oklch(26.9% 0.051 225.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40171C

    #40171C

    oklch(26.9% 0.064 15)

  • #182D09

    #182D09

    oklch(27% 0.064 134.6)

  • #0E2745

    #0E2745

    oklch(27.1% 0.064 254.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40171C

    #40171C

    oklch(26.9% 0.064 15)

  • #2B2700

    #2B2700

    oklch(26.9% 0.057 103.7)

  • #002D2D

    #002D2D

    oklch(26.9% 0.046 194.8)

  • #242144

    #242144

    oklch(27.1% 0.064 285.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40171C 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.