#402C0A

Closest named color: Pakistan Green (#283618). oklch(31% 0.056 76.8), rgb(64, 44, 10).

Aa

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

About this color

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

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

Values

HEX#402C0A
RGBrgb(64, 44, 10)
HSLhsl(38, 73%, 15%)
OKLCHoklch(31% 0.056 76.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 #402C0A 13.26:1 AAA Lc -102.7 Preferred for body text
Black text on #402C0A 1.58:1 Fails Lc 0.0 Not readable
#402C0A text on white 13.26:1 AAA Lc 99.5 Preferred for body text
#402C0A 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

    #F9F5EF

    oklch(97.2% 0.009 78.3)

  2. Step 100

    100

    #F1E8DC

    oklch(93.5% 0.019 75.3)

  3. Step 200

    200

    #E7D7BF

    oklch(88.6% 0.037 78.1)

  4. Step 300

    300

    #D9BC91

    oklch(81% 0.066 77.4)

  5. Step 400

    400

    #C6974F

    oklch(70.6% 0.106 76.2)

  6. Step 500

    500

    #B67D00

    oklch(63.2% 0.132 76.8)

  7. Step 600

    600

    #996800

    oklch(55.5% 0.116 76.4)

  8. Step 700

    700

    #815700

    oklch(49% 0.103 76.4)

  9. Step 800

    800

    #6A4700

    oklch(42.6% 0.089 76.7)

  10. Step 900

    900

    #593B00

    oklch(37.8% 0.079 76.7)

  11. Step 950

    950 (this color)

    #402C0A

    oklch(31% 0.056 76.8)

Export this scale for Tailwind in the Tailwind colors tool

#402C0A 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)#332D060.027
Deuteranopia (no green cones)#38320B0.023
Tritanopia (no blue cones)#4627250.046
Achromatopsia (no color)#3030300.056

Harmonies

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

Complementary

The opposite hue (180°).

  • #402C0A

    #402C0A

    oklch(31% 0.056 76.8)

  • #1D314C

    #1D314C

    oklch(31% 0.055 256.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402C0A

    #402C0A

    oklch(31% 0.056 76.8)

  • #472716

    #472716

    oklch(31% 0.056 47.8)

  • #34320C

    #34320C

    oklch(31% 0.056 106.3)

Open the analogous palette in the generator

Split complementary

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

  • #402C0A

    #402C0A

    oklch(31% 0.056 76.8)

  • #063646

    #063646

    oklch(31.1% 0.056 226.1)

  • #2E2B4B

    #2E2B4B

    oklch(30.8% 0.057 286.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402C0A

    #402C0A

    oklch(31% 0.056 76.8)

  • #003839

    #003839

    oklch(30.9% 0.053 196.7)

  • #3B2743

    #3B2743

    oklch(30.9% 0.055 315.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402C0A

    #402C0A

    oklch(31% 0.056 76.8)

  • #0B392A

    #0B392A

    oklch(30.9% 0.056 166.9)

  • #1D314C

    #1D314C

    oklch(31% 0.055 256.3)

  • #442436

    #442436

    oklch(30.9% 0.055 346)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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