#402017

Closest named color: Chocolate Brown (#411900). oklch(28.5% 0.052 36.6), rgb(64, 32, 23).

Aa

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

About this color

#402017 is a dark, muted red. In OKLCH its lightness is 28%, its chroma 0.052 and its hue 37°. Its hue sits on the warm side of the wheel. The nearest named color is Chocolate Brown (#411900), ΔE 0.028 away. White text reads best on it, at 14.61:1.

Hue familyReds
Lightnessdark (28%)
Chromamuted (0.052)
Temperaturewarm
Nearest nameChocolate Brown (#411900)
Black text1.43:1
White text14.61:1

Values

HEX#402017
RGBrgb(64, 32, 23)
HSLhsl(13, 47%, 17%)
OKLCHoklch(28.5% 0.052 36.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 #402017 14.61:1 AAA Lc -104.1 Preferred for body text
Black text on #402017 1.43:1 Fails Lc 0.0 Not readable
#402017 text on white 14.61:1 AAA Lc 101.2 Preferred for body text
#402017 text on black 1.43: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

    #FBF4F2

    oklch(97.2% 0.008 36.6)

  2. Step 100

    100

    #F5E6E2

    oklch(93.6% 0.017 35.3)

  3. Step 200

    200

    #EFD2CA

    oklch(88.6% 0.034 35.9)

  4. Step 300

    300

    #E5B3A5

    oklch(80.8% 0.062 36.2)

  5. Step 400

    400

    #D68A75

    oklch(70.6% 0.099 36.2)

  6. Step 500

    500

    #CA6B50

    oklch(63.2% 0.127 36.7)

  7. Step 600

    600

    #B55034

    oklch(55.6% 0.138 36.4)

  8. Step 700

    700

    #9B4027

    oklch(49% 0.128 36.2)

  9. Step 800

    800

    #7E3621

    oklch(42.7% 0.106 37)

  10. Step 900

    900

    #662F20

    oklch(37.6% 0.083 36.2)

  11. Step 950

    950 (this color)

    #402017

    oklch(28.5% 0.052 36.6)

Export this scale for Tailwind in the Tailwind colors tool

#402017 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)#2825160.051
Deuteranopia (no green cones)#302B170.046
Tritanopia (no blue cones)#461B1E0.024
Achromatopsia (no color)#2929290.052

Harmonies

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

Complementary

The opposite hue (180°).

  • #402017

    #402017

    oklch(28.5% 0.052 36.6)

  • #00303A

    #00303A

    oklch(28.5% 0.051 216.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402017

    #402017

    oklch(28.5% 0.052 36.6)

  • #401E26

    #401E26

    oklch(28.5% 0.054 6)

  • #3B240A

    #3B240A

    oklch(28.4% 0.052 66)

Open the analogous palette in the generator

Split complementary

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

  • #402017

    #402017

    oklch(28.5% 0.052 36.6)

  • #00322E

    #00322E

    oklch(28.5% 0.05 186.3)

  • #122C42

    #122C42

    oklch(28.4% 0.052 246.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402017

    #402017

    oklch(28.5% 0.052 36.6)

  • #10321F

    #10321F

    oklch(28.6% 0.053 156.2)

  • #232744

    #232744

    oklch(28.4% 0.053 276.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402017

    #402017

    oklch(28.5% 0.052 36.6)

  • #232F10

    #232F10

    oklch(28.6% 0.053 127.1)

  • #00303A

    #00303A

    oklch(28.5% 0.051 216.1)

  • #31233E

    #31233E

    oklch(28.6% 0.051 307.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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