#40171A

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

Aa

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

About this color

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

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

Values

HEX#40171A
RGBrgb(64, 23, 26)
HSLhsl(356, 47%, 17%)
OKLCHoklch(26.9% 0.064 18)

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

    #F8E4E4

    oklch(93.5% 0.022 17.6)

  3. Step 200

    200

    #F4CFCF

    oklch(88.6% 0.042 18)

  4. Step 300

    300

    #EEADAE

    oklch(80.9% 0.077 17.9)

  5. Step 400

    400

    #E28084

    oklch(70.8% 0.121 18)

  6. Step 500

    500

    #D75C65

    oklch(63.2% 0.155 18.2)

  7. Step 600

    600

    #C23D4C

    oklch(55.6% 0.169 18.2)

  8. Step 700

    700

    #A72E3D

    oklch(49.1% 0.156 18.3)

  9. Step 800

    800

    #882833

    oklch(42.8% 0.13 18.1)

  10. Step 900

    900

    #6D262D

    oklch(37.7% 0.101 17.5)

  11. Step 950

    950 (this color)

    #40171A

    oklch(26.9% 0.064 18)

Export this scale for Tailwind in the Tailwind colors tool

#40171A 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)#201F1A0.070
Deuteranopia (no green cones)#2B27190.063
Tritanopia (no blue cones)#4611180.017
Achromatopsia (no color)#2424240.065

Harmonies

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

Complementary

The opposite hue (180°).

  • #40171A

    #40171A

    oklch(26.9% 0.064 18)

  • #002D2E

    #002D2E

    oklch(27% 0.046 197.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40171A

    #40171A

    oklch(26.9% 0.064 18)

  • #3C172C

    #3C172C

    oklch(26.8% 0.065 347.2)

  • #3E1B06

    #3E1B06

    oklch(26.9% 0.063 48.6)

Open the analogous palette in the generator

Split complementary

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

  • #40171A

    #40171A

    oklch(26.9% 0.064 18)

  • #002E21

    #002E21

    oklch(26.8% 0.054 168.6)

  • #002B3A

    #002B3A

    oklch(27% 0.052 227.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40171A

    #40171A

    oklch(26.9% 0.064 18)

  • #152D0C

    #152D0C

    oklch(26.8% 0.063 138.1)

  • #112645

    #112645

    oklch(27% 0.064 258.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40171A

    #40171A

    oklch(26.9% 0.064 18)

  • #292800

    #292800

    oklch(26.9% 0.058 108.3)

  • #002D2E

    #002D2E

    oklch(27% 0.046 197.1)

  • #252043

    #252043

    oklch(26.9% 0.064 287.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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