#402F23

Closest named color: Onyx (#343A40). oklch(32.1% 0.032 56.5), rgb(64, 47, 35).

Aa

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

About this color

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

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

Values

HEX#402F23
RGBrgb(64, 47, 35)
HSLhsl(25, 29%, 19%)
OKLCHoklch(32.1% 0.032 56.5)

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 #402F23 12.73:1 AAA Lc -102.1 Preferred for body text
Black text on #402F23 1.64:1 Fails Lc 0.0 Not readable
#402F23 text on white 12.73:1 AAA Lc 98.8 Preferred for body text
#402F23 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

    #E5D6CC

    oklch(88.5% 0.022 56.1)

  4. Step 300

    300

    #D5BBA9

    oklch(80.9% 0.039 56.8)

  5. Step 400

    400

    #BF977C

    oklch(70.7% 0.061 55.5)

  6. Step 500

    500

    #AE7D5A

    oklch(63% 0.078 56.3)

  7. Step 600

    600

    #996640

    oklch(55.6% 0.085 56.6)

  8. Step 700

    700

    #835432

    oklch(49.1% 0.079 55.6)

  9. Step 800

    800

    #6A452A

    oklch(42.6% 0.065 56.1)

  10. Step 900

    900

    #563A26

    oklch(37.6% 0.051 56)

  11. Step 950

    950 (this color)

    #402F23

    oklch(32.1% 0.032 56.5)

Export this scale for Tailwind in the Tailwind colors tool

#402F23 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)#3430220.023
Deuteranopia (no green cones)#3834230.021
Tritanopia (no blue cones)#452C2C0.023
Achromatopsia (no color)#3232320.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #402F23

    #402F23

    oklch(32.1% 0.032 56.5)

  • #233642

    #233642

    oklch(32.2% 0.033 236.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402F23

    #402F23

    oklch(32.1% 0.032 56.5)

  • #422D2A

    #422D2A

    oklch(32.1% 0.032 28.1)

  • #3A3220

    #3A3220

    oklch(32% 0.032 86.6)

Open the analogous palette in the generator

Split complementary

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

  • #402F23

    #402F23

    oklch(32.1% 0.032 56.5)

  • #1E383B

    #1E383B

    oklch(32.1% 0.032 205.1)

  • #2C3344

    #2C3344

    oklch(32.2% 0.032 267.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402F23

    #402F23

    oklch(32.1% 0.032 56.5)

  • #213933

    #213933

    oklch(32.3% 0.032 176.6)

  • #353042

    #353042

    oklch(32.2% 0.032 297.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402F23

    #402F23

    oklch(32.1% 0.032 56.5)

  • #283829

    #283829

    oklch(32.2% 0.034 146.3)

  • #233642

    #233642

    oklch(32.2% 0.033 236.9)

  • #3C2D3C

    #3C2D3C

    oklch(32% 0.033 326.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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