#402D33

Closest named color: Onyx (#343A40). oklch(32.1% 0.03 358.2), rgb(64, 45, 51).

Aa

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

About this color

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

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

Values

HEX#402D33
RGBrgb(64, 45, 51)
HSLhsl(341, 17%, 21%)
OKLCHoklch(32.1% 0.03 358.2)

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 #402D33 12.79:1 AAA Lc -102.2 Preferred for body text
Black text on #402D33 1.64:1 Fails Lc 0.0 Not readable
#402D33 text on white 12.79:1 AAA Lc 98.9 Preferred for body text
#402D33 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

    #F8F4F5

    oklch(97.1% 0.004 360)

  2. Step 100

    100

    #F0E7EA

    oklch(93.6% 0.011 354.9)

  3. Step 200

    200

    #E5D4D9

    oklch(88.5% 0.02 357.7)

  4. Step 300

    300

    #D5B8C0

    oklch(81% 0.035 359.4)

  5. Step 400

    400

    #BF93A0

    oklch(70.8% 0.056 359.1)

  6. Step 500

    500

    #AE7789

    oklch(63.1% 0.073 358.1)

  7. Step 600

    600

    #986073

    oklch(55.6% 0.077 358)

  8. Step 700

    700

    #824F60

    oklch(49.1% 0.072 358.6)

  9. Step 800

    800

    #6A414F

    oklch(42.8% 0.06 357.9)

  10. Step 900

    900

    #563741

    oklch(37.7% 0.047 358.6)

  11. Step 950

    950 (this color)

    #402D33

    oklch(32.1% 0.03 358.2)

Export this scale for Tailwind in the Tailwind colors tool

#402D33 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)#2F30330.032
Deuteranopia (no green cones)#3433330.028
Tritanopia (no blue cones)#432C2F0.008
Achromatopsia (no color)#3232320.030

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D33

    #402D33

    oklch(32.1% 0.03 358.2)

  • #223833

    #223833

    oklch(32% 0.029 178.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D33

    #402D33

    oklch(32.1% 0.03 358.2)

  • #3C2E3B

    #3C2E3B

    oklch(32.2% 0.03 328.6)

  • #412E2B

    #412E2B

    oklch(32.2% 0.029 28.9)

Open the analogous palette in the generator

Split complementary

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

  • #402D33

    #402D33

    oklch(32.1% 0.03 358.2)

  • #29382B

    #29382B

    oklch(32.3% 0.03 148.4)

  • #21383B

    #21383B

    oklch(32.3% 0.029 206.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D33

    #402D33

    oklch(32.1% 0.03 358.2)

  • #323524

    #323524

    oklch(32.1% 0.029 116.2)

  • #253641

    #253641

    oklch(32.3% 0.03 237.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D33

    #402D33

    oklch(32.1% 0.03 358.2)

  • #393322

    #393322

    oklch(32.2% 0.029 90.9)

  • #223833

    #223833

    oklch(32% 0.029 178.4)

  • #2D3343

    #2D3343

    oklch(32.2% 0.03 268.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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