#402C0F

Closest named color: Pakistan Green (#283618). oklch(31% 0.052 73.8), rgb(64, 44, 15).

Aa

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

About this color

#402C0F is a dark, muted brown. In OKLCH its lightness is 31%, its chroma 0.052 and its hue 74°. Its hue sits on the warm side of the wheel. The nearest named color is Pakistan Green (#283618), ΔE 0.049 away. White text reads best on it, at 13.24:1.

Hue familyBrowns
Lightnessdark (31%)
Chromamuted (0.052)
Temperaturewarm
Nearest namePakistan Green (#283618)
Black text1.58:1
White text13.24:1

Values

HEX#402C0F
RGBrgb(64, 44, 15)
HSLhsl(36, 62%, 15%)
OKLCHoklch(31% 0.052 73.8)

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 #402C0F 13.24:1 AAA Lc -102.7 Preferred for body text
Black text on #402C0F 1.58:1 Fails Lc 0.0 Not readable
#402C0F text on white 13.24:1 AAA Lc 99.5 Preferred for body text
#402C0F text on black 1.58: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

    #F9F5F0

    oklch(97.2% 0.008 73.7)

  2. Step 100

    100

    #F1E8DD

    oklch(93.5% 0.018 73.1)

  3. Step 200

    200

    #E7D6C1

    oklch(88.4% 0.034 73.2)

  4. Step 300

    300

    #D9BB95

    oklch(80.9% 0.061 73.3)

  5. Step 400

    400

    #C59758

    oklch(70.6% 0.098 73.8)

  6. Step 500

    500

    #B67C1B

    oklch(63.1% 0.126 73.9)

  7. Step 600

    600

    #9C6700

    oklch(55.7% 0.118 73.9)

  8. Step 700

    700

    #835600

    oklch(49.1% 0.104 74.1)

  9. Step 800

    800

    #6C4600

    oklch(42.7% 0.091 73.9)

  10. Step 900

    900

    #5A3A00

    oklch(37.7% 0.08 74.4)

  11. Step 950

    950 (this color)

    #402C0F

    oklch(31% 0.052 73.8)

Export this scale for Tailwind in the Tailwind colors tool

#402C0F 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)#332D0C0.027
Deuteranopia (no green cones)#3832100.023
Tritanopia (no blue cones)#4627260.043
Achromatopsia (no color)#3030300.052

Harmonies

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

Complementary

The opposite hue (180°).

  • #402C0F

    #402C0F

    oklch(31% 0.052 73.8)

  • #1D314A

    #1D314A

    oklch(30.9% 0.052 254.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402C0F

    #402C0F

    oklch(31% 0.052 73.8)

  • #46271A

    #46271A

    oklch(31% 0.052 43.2)

  • #35310F

    #35310F

    oklch(30.9% 0.051 102.6)

Open the analogous palette in the generator

Split complementary

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

  • #402C0F

    #402C0F

    oklch(31% 0.052 73.8)

  • #0A3644

    #0A3644

    oklch(31.1% 0.052 224)

  • #2D2D4A

    #2D2D4A

    oklch(31.1% 0.052 283)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402C0F

    #402C0F

    oklch(31% 0.052 73.8)

  • #023838

    #023838

    oklch(30.9% 0.052 194.8)

  • #3A2843

    #3A2843

    oklch(31% 0.053 314)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402C0F

    #402C0F

    oklch(31% 0.052 73.8)

  • #123929

    #123929

    oklch(31.1% 0.053 163.3)

  • #1D314A

    #1D314A

    oklch(30.9% 0.052 254.6)

  • #432537

    #432537

    oklch(31% 0.053 343.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #402C0F 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.