#402F1F

Closest named color: Pakistan Green (#283618). oklch(32% 0.036 64.2), rgb(64, 47, 31).

Aa

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

About this color

#402F1F is a dark, muted brown. In OKLCH its lightness is 32%, its chroma 0.036 and its hue 64°. Its hue sits on the warm side of the wheel. The nearest named color is Pakistan Green (#283618), ΔE 0.051 away. White text reads best on it, at 12.77:1.

Hue familyBrowns
Lightnessdark (32%)
Chromamuted (0.036)
Temperaturewarm
Nearest namePakistan Green (#283618)
Black text1.64:1
White text12.77:1

Values

HEX#402F1F
RGBrgb(64, 47, 31)
HSLhsl(29, 35%, 19%)
OKLCHoklch(32% 0.036 64.2)

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 #402F1F 12.77:1 AAA Lc -102.2 Preferred for body text
Black text on #402F1F 1.64:1 Fails Lc 0.0 Not readable
#402F1F text on white 12.77:1 AAA Lc 98.8 Preferred for body text
#402F1F text on black 1.64: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

    #F8F5F1

    oklch(97.1% 0.006 75.4)

  2. Step 100

    100

    #F0E8E1

    oklch(93.5% 0.013 63.9)

  3. Step 200

    200

    #E5D6C9

    oklch(88.5% 0.024 63.5)

  4. Step 300

    300

    #D5BBA4

    oklch(80.8% 0.043 63.7)

  5. Step 400

    400

    #BF9873

    oklch(70.7% 0.069 64.8)

  6. Step 500

    500

    #AF7E4F

    oklch(63.2% 0.088 63.9)

  7. Step 600

    600

    #9A6632

    oklch(55.5% 0.095 63.5)

  8. Step 700

    700

    #835524

    oklch(49.1% 0.088 64.6)

  9. Step 800

    800

    #6B4620

    oklch(42.8% 0.073 64.3)

  10. Step 900

    900

    #573B1F

    oklch(37.8% 0.058 64.5)

  11. Step 950

    950 (this color)

    #402F1F

    oklch(32% 0.036 64.2)

Export this scale for Tailwind in the Tailwind colors tool

#402F1F 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)#34301E0.023
Deuteranopia (no green cones)#38341F0.021
Tritanopia (no blue cones)#452B2B0.029
Achromatopsia (no color)#3232320.036

Harmonies

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

Complementary

The opposite hue (180°).

  • #402F1F

    #402F1F

    oklch(32% 0.036 64.2)

  • #233544

    #233544

    oklch(32% 0.036 244.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402F1F

    #402F1F

    oklch(32% 0.036 64.2)

  • #432C27

    #432C27

    oklch(31.9% 0.036 32.7)

  • #39331D

    #39331D

    oklch(32.1% 0.037 94.7)

Open the analogous palette in the generator

Split complementary

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

  • #402F1F

    #402F1F

    oklch(32% 0.036 64.2)

  • #1B383E

    #1B383E

    oklch(32.1% 0.036 212.6)

  • #2D3246

    #2D3246

    oklch(32.1% 0.036 273.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402F1F

    #402F1F

    oklch(32% 0.036 64.2)

  • #1C3935

    #1C3935

    oklch(32% 0.036 184.2)

  • #372E42

    #372E42

    oklch(32% 0.037 304.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402F1F

    #402F1F

    oklch(32% 0.036 64.2)

  • #24382A

    #24382A

    oklch(31.9% 0.036 153.5)

  • #233544

    #233544

    oklch(32% 0.036 244.4)

  • #3E2C3A

    #3E2C3A

    oklch(32% 0.035 334.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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