#402012

Closest named color: Chocolate Brown (#411900). oklch(28.4% 0.055 43.7), rgb(64, 32, 18).

Aa

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

About this color

#402012 is a dark, muted brown. In OKLCH its lightness is 28%, its chroma 0.055 and its hue 44°. Its hue sits on the warm side of the wheel. The nearest named color is Chocolate Brown (#411900), ΔE 0.023 away. White text reads best on it, at 14.65:1.

Hue familyBrowns
Lightnessdark (28%)
Chromamuted (0.055)
Temperaturewarm
Nearest nameChocolate Brown (#411900)
Black text1.43:1
White text14.65:1

Values

HEX#402012
RGBrgb(64, 32, 18)
HSLhsl(18, 56%, 16%)
OKLCHoklch(28.4% 0.055 43.7)

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 #402012 14.65:1 AAA Lc -104.2 Preferred for body text
Black text on #402012 1.43:1 Fails Lc 0.0 Not readable
#402012 text on white 14.65:1 AAA Lc 101.3 Preferred for body text
#402012 text on black 1.43: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

    #FBF4F1

    oklch(97.2% 0.009 44.9)

  2. Step 100

    100

    #F5E6E0

    oklch(93.5% 0.018 43.2)

  3. Step 200

    200

    #EFD2C6

    oklch(88.5% 0.037 43.8)

  4. Step 300

    300

    #E6B49F

    oklch(81% 0.065 43.9)

  5. Step 400

    400

    #D78B6A

    oklch(70.7% 0.104 44.1)

  6. Step 500

    500

    #CA6C41

    oklch(63.1% 0.132 44.2)

  7. Step 600

    600

    #B6511F

    oklch(55.6% 0.145 43.7)

  8. Step 700

    700

    #9C4110

    oklch(49.1% 0.134 43.9)

  9. Step 800

    800

    #7F3612

    oklch(42.7% 0.111 43.5)

  10. Step 900

    900

    #663017

    oklch(37.7% 0.086 43.9)

  11. Step 950

    950 (this color)

    #402012

    oklch(28.4% 0.055 43.7)

Export this scale for Tailwind in the Tailwind colors tool

#402012 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)#2924110.049
Deuteranopia (no green cones)#302B120.046
Tritanopia (no blue cones)#471A1D0.031
Achromatopsia (no color)#2828280.055

Harmonies

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

Complementary

The opposite hue (180°).

  • #402012

    #402012

    oklch(28.4% 0.055 43.7)

  • #002F3D

    #002F3D

    oklch(28.3% 0.053 223.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402012

    #402012

    oklch(28.4% 0.055 43.7)

  • #411D22

    #411D22

    oklch(28.4% 0.056 12.6)

  • #3A2505

    #3A2505

    oklch(28.4% 0.055 73.3)

Open the analogous palette in the generator

Split complementary

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

  • #402012

    #402012

    oklch(28.4% 0.055 43.7)

  • #003131

    #003131

    oklch(28.4% 0.048 194.8)

  • #152B44

    #152B44

    oklch(28.4% 0.054 252.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402012

    #402012

    oklch(28.4% 0.055 43.7)

  • #073222

    #073222

    oklch(28.3% 0.055 163.5)

  • #272644

    #272644

    oklch(28.5% 0.054 283.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402012

    #402012

    oklch(28.4% 0.055 43.7)

  • #1E3012

    #1E3012

    oklch(28.5% 0.056 134.3)

  • #002F3D

    #002F3D

    oklch(28.3% 0.053 223.8)

  • #34213D

    #34213D

    oklch(28.4% 0.056 314.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #402012 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.