#402F22

Closest named color: Onyx (#343A40). oklch(32.1% 0.033 58.6), rgb(64, 47, 34).

Aa

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

About this color

#402F22 is a dark, muted brown. In OKLCH its lightness is 32%, its chroma 0.033 and its hue 59°. Its hue sits on the warm side of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.052 away. White text reads best on it, at 12.74:1.

Hue familyBrowns
Lightnessdark (32%)
Chromamuted (0.033)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.64:1
White text12.74:1

Values

HEX#402F22
RGBrgb(64, 47, 34)
HSLhsl(26, 31%, 19%)
OKLCHoklch(32.1% 0.033 58.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 #402F22 12.74:1 AAA Lc -102.1 Preferred for body text
Black text on #402F22 1.64:1 Fails Lc 0.0 Not readable
#402F22 text on white 12.74:1 AAA Lc 98.8 Preferred for body text
#402F22 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

    #F8F5F2

    oklch(97.2% 0.005 67.8)

  2. Step 100

    100

    #F0E8E3

    oklch(93.6% 0.011 54.5)

  3. Step 200

    200

    #E5D6CB

    oklch(88.5% 0.022 58.8)

  4. Step 300

    300

    #D5BBA8

    oklch(80.9% 0.04 58.3)

  5. Step 400

    400

    #BF987A

    oklch(70.8% 0.063 59.1)

  6. Step 500

    500

    #AE7D57

    oklch(63% 0.081 58.4)

  7. Step 600

    600

    #99663D

    oklch(55.6% 0.087 58.5)

  8. Step 700

    700

    #83552F

    oklch(49.2% 0.081 58.8)

  9. Step 800

    800

    #6A4527

    oklch(42.6% 0.067 58.6)

  10. Step 900

    900

    #563B24

    oklch(37.7% 0.052 60.7)

  11. Step 950

    950 (this color)

    #402F22

    oklch(32.1% 0.033 58.6)

Export this scale for Tailwind in the Tailwind colors tool

#402F22 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)#3430210.023
Deuteranopia (no green cones)#3834220.021
Tritanopia (no blue cones)#452C2C0.024
Achromatopsia (no color)#3232320.033

Harmonies

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

Complementary

The opposite hue (180°).

  • #402F22

    #402F22

    oklch(32.1% 0.033 58.6)

  • #233642

    #233642

    oklch(32.2% 0.033 236.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402F22

    #402F22

    oklch(32.1% 0.033 58.6)

  • #432D29

    #432D29

    oklch(32.2% 0.034 30.5)

  • #3A321F

    #3A321F

    oklch(32% 0.033 87.6)

Open the analogous palette in the generator

Split complementary

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

  • #402F22

    #402F22

    oklch(32.1% 0.033 58.6)

  • #1D383C

    #1D383C

    oklch(32.1% 0.034 207.8)

  • #2C3344

    #2C3344

    oklch(32.2% 0.032 267.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402F22

    #402F22

    oklch(32.1% 0.033 58.6)

  • #1F3933

    #1F3933

    oklch(32.1% 0.034 177.6)

  • #352F42

    #352F42

    oklch(32% 0.034 298.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402F22

    #402F22

    oklch(32.1% 0.033 58.6)

  • #27382A

    #27382A

    oklch(32.1% 0.033 149.6)

  • #233642

    #233642

    oklch(32.2% 0.033 236.9)

  • #3D2D3C

    #3D2D3C

    oklch(32.1% 0.034 328.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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