#402F27

Closest named color: Onyx (#343A40). oklch(32.2% 0.029 46.4), rgb(64, 47, 39).

Aa

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

About this color

#402F27 is a dark close to neutral grey. In OKLCH its lightness is 32%, its chroma 0.029. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.047 away. White text reads best on it, at 12.69:1.

Hue familyNeutrals
Lightnessdark (32%)
Chromaclose to neutral grey (0.029)
Temperatureneutral
Nearest nameOnyx (#343A40)
Black text1.65:1
White text12.69:1

Values

HEX#402F27
RGBrgb(64, 47, 39)
HSLhsl(19, 24%, 20%)
OKLCHoklch(32.2% 0.029 46.4)

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 #402F27 12.69:1 AAA Lc -102.1 Preferred for body text
Black text on #402F27 1.65:1 Fails Lc 0.0 Not readable
#402F27 text on white 12.69:1 AAA Lc 98.7 Preferred for body text
#402F27 text on black 1.65: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

    #F8F4F3

    oklch(97% 0.005 34.3)

  2. Step 100

    100

    #F0E8E4

    oklch(93.6% 0.01 48.6)

  3. Step 200

    200

    #E4D6CF

    oklch(88.5% 0.018 48.5)

  4. Step 300

    300

    #D4BAAF

    oklch(80.8% 0.034 44.3)

  5. Step 400

    400

    #BE9784

    oklch(70.7% 0.054 47.3)

  6. Step 500

    500

    #AD7D66

    oklch(63.2% 0.069 46.6)

  7. Step 600

    600

    #98654D

    oklch(55.5% 0.075 45.9)

  8. Step 700

    700

    #82543E

    oklch(49.2% 0.07 46.2)

  9. Step 800

    800

    #6A4533

    oklch(42.8% 0.059 46.6)

  10. Step 900

    900

    #563A2D

    oklch(37.7% 0.045 45.8)

  11. Step 950

    950 (this color)

    #402F27

    oklch(32.2% 0.029 46.4)

Export this scale for Tailwind in the Tailwind colors tool

#402F27 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)#3331260.025
Deuteranopia (no green cones)#3734270.022
Tritanopia (no blue cones)#442C2D0.018
Achromatopsia (no color)#3333330.029

Harmonies

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

Complementary

The opposite hue (180°).

  • #402F27

    #402F27

    oklch(32.2% 0.029 46.4)

  • #23373F

    #23373F

    oklch(32.3% 0.029 225)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402F27

    #402F27

    oklch(32.2% 0.029 46.4)

  • #412E2E

    #412E2E

    oklch(32.3% 0.028 18.7)

  • #3C3223

    #3C3223

    oklch(32.3% 0.029 77.5)

Open the analogous palette in the generator

Split complementary

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

  • #402F27

    #402F27

    oklch(32.2% 0.029 46.4)

  • #213838

    #213838

    oklch(32.2% 0.029 195.8)

  • #2A3442

    #2A3442

    oklch(32.2% 0.029 256.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402F27

    #402F27

    oklch(32.2% 0.029 46.4)

  • #253830

    #253830

    oklch(32.2% 0.028 166.6)

  • #323142

    #323142

    oklch(32.2% 0.03 287.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402F27

    #402F27

    oklch(32.2% 0.029 46.4)

  • #2D3728

    #2D3728

    oklch(32.3% 0.029 135.3)

  • #23373F

    #23373F

    oklch(32.3% 0.029 225)

  • #392F3D

    #392F3D

    oklch(32.2% 0.028 316.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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