#40271E

Closest named color: Chocolate Brown (#411900). oklch(30.2% 0.041 40.6), rgb(64, 39, 30).

Aa

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

About this color

#40271E is a dark, muted brown. In OKLCH its lightness is 30%, its chroma 0.041 and its hue 41°. Its hue sits on the warm side of the wheel. The nearest named color is Chocolate Brown (#411900), ΔE 0.045 away. White text reads best on it, at 13.75:1.

Hue familyBrowns
Lightnessdark (30%)
Chromamuted (0.041)
Temperaturewarm
Nearest nameChocolate Brown (#411900)
Black text1.52:1
White text13.75:1

Values

HEX#40271E
RGBrgb(64, 39, 30)
HSLhsl(16, 36%, 18%)
OKLCHoklch(30.2% 0.041 40.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 #40271E 13.75:1 AAA Lc -103.3 Preferred for body text
Black text on #40271E 1.52:1 Fails Lc 0.0 Not readable
#40271E text on white 13.75:1 AAA Lc 100.2 Preferred for body text
#40271E text on black 1.52: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

    #FAF4F2

    oklch(97.1% 0.007 39.5)

  2. Step 100

    100

    #F3E7E3

    oklch(93.6% 0.014 39.4)

  3. Step 200

    200

    #EAD4CC

    oklch(88.6% 0.027 41.1)

  4. Step 300

    300

    #DDB7A9

    oklch(80.9% 0.048 41.2)

  5. Step 400

    400

    #CB907B

    oklch(70.6% 0.078 40.4)

  6. Step 500

    500

    #BD745A

    oklch(63.2% 0.1 40.3)

  7. Step 600

    600

    #A85B3F

    oklch(55.6% 0.109 40.4)

  8. Step 700

    700

    #904B31

    oklch(49.2% 0.101 40.9)

  9. Step 800

    800

    #753E29

    oklch(42.8% 0.084 41.3)

  10. Step 900

    900

    #5F3526

    oklch(37.8% 0.065 40.3)

  11. Step 950

    950 (this color)

    #40271E

    oklch(30.2% 0.041 40.6)

Export this scale for Tailwind in the Tailwind colors tool

#40271E 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)#2D2A1D0.038
Deuteranopia (no green cones)#332F1E0.035
Tritanopia (no blue cones)#4623250.023
Achromatopsia (no color)#2D2D2D0.041

Harmonies

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

Complementary

The opposite hue (180°).

  • #40271E

    #40271E

    oklch(30.2% 0.041 40.6)

  • #13333D

    #13333D

    oklch(30.2% 0.041 221.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40271E

    #40271E

    oklch(30.2% 0.041 40.6)

  • #402529

    #402529

    oklch(30% 0.041 10.2)

  • #3B2B16

    #3B2B16

    oklch(30.2% 0.041 72.7)

Open the analogous palette in the generator

Split complementary

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

  • #40271E

    #40271E

    oklch(30.2% 0.041 40.6)

  • #113533

    #113533

    oklch(30.2% 0.041 190.2)

  • #1E3042

    #1E3042

    oklch(30.2% 0.04 249.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40271E

    #40271E

    oklch(30.2% 0.041 40.6)

  • #1A3527

    #1A3527

    oklch(30.3% 0.042 159.8)

  • #2A2C43

    #2A2C43

    oklch(30.2% 0.042 279.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40271E

    #40271E

    oklch(30.2% 0.041 40.6)

  • #27321C

    #27321C

    oklch(30% 0.041 130.1)

  • #13333D

    #13333D

    oklch(30.2% 0.041 221.3)

  • #35283E

    #35283E

    oklch(30.1% 0.042 310.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40271E 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.