#402E33

Closest named color: Onyx (#343A40). oklch(32.4% 0.028 0.4), rgb(64, 46, 51).

Aa

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

About this color

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

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

Values

HEX#402E33
RGBrgb(64, 46, 51)
HSLhsl(343, 16%, 22%)
OKLCHoklch(32.4% 0.028 0.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 #402E33 12.67:1 AAA Lc -102.0 Preferred for body text
Black text on #402E33 1.65:1 Fails Lc 0.0 Not readable
#402E33 text on white 12.67:1 AAA Lc 98.7 Preferred for body text
#402E33 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 900.

  1. Step 50

    50

    #F7F5F5

    oklch(97.2% 0.002 17.2)

  2. Step 100

    100

    #EDE8E9

    oklch(93.5% 0.006 3.3)

  3. Step 200

    200

    #E0D6D9

    oklch(88.5% 0.012 357)

  4. Step 300

    300

    #CDBBC0

    oklch(80.9% 0.021 358.8)

  5. Step 400

    400

    #B3989F

    oklch(70.6% 0.033 0.6)

  6. Step 500

    500

    #A07F88

    oklch(63.1% 0.042 0.3)

  7. Step 600

    600

    #8B6872

    oklch(55.6% 0.047 359.9)

  8. Step 700

    700

    #76575F

    oklch(49.2% 0.043 1.7)

  9. Step 800

    800

    #60474E

    oklch(42.7% 0.036 0.2)

  10. Step 900

    900 (this color)

    #402E33

    oklch(32.4% 0.028 0.4)

  11. Step 950

    950

    #2E2326

    oklch(27% 0.017 0.2)

Export this scale for Tailwind in the Tailwind colors tool

#402E33 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)#3031330.030
Deuteranopia (no green cones)#3434330.028
Tritanopia (no blue cones)#432D300.007
Achromatopsia (no color)#3333330.028

Harmonies

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

Complementary

The opposite hue (180°).

  • #402E33

    #402E33

    oklch(32.4% 0.028 0.4)

  • #243934

    #243934

    oklch(32.5% 0.028 177.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402E33

    #402E33

    oklch(32.4% 0.028 0.4)

  • #3C2F3A

    #3C2F3A

    oklch(32.4% 0.026 331.4)

  • #412F2B

    #412F2B

    oklch(32.5% 0.028 32.8)

Open the analogous palette in the generator

Split complementary

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

  • #402E33

    #402E33

    oklch(32.4% 0.028 0.4)

  • #2A382C

    #2A382C

    oklch(32.4% 0.028 148.8)

  • #23383C

    #23383C

    oklch(32.5% 0.028 210.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402E33

    #402E33

    oklch(32.4% 0.028 0.4)

  • #323626

    #323626

    oklch(32.4% 0.028 119.4)

  • #273641

    #273641

    oklch(32.4% 0.028 240.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402E33

    #402E33

    oklch(32.4% 0.028 0.4)

  • #393324

    #393324

    oklch(32.3% 0.026 88.8)

  • #243934

    #243934

    oklch(32.5% 0.028 177.9)

  • #2E3342

    #2E3342

    oklch(32.3% 0.028 270.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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