#402D30

Closest named color: Onyx (#343A40). oklch(32% 0.028 8.3), rgb(64, 45, 48).

Aa

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

About this color

#402D30 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.044 away. White text reads best on it, at 12.83:1.

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

Values

HEX#402D30
RGBrgb(64, 45, 48)
HSLhsl(351, 17%, 21%)
OKLCHoklch(32% 0.028 8.3)

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 #402D30 12.83:1 AAA Lc -102.3 Preferred for body text
Black text on #402D30 1.63:1 Fails Lc 0.0 Not readable
#402D30 text on white 12.83:1 AAA Lc 98.9 Preferred for body text
#402D30 text on black 1.63: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

    #F0E7E8

    oklch(93.5% 0.01 9.5)

  3. Step 200

    200

    #E5D4D7

    oklch(88.5% 0.019 5.3)

  4. Step 300

    300

    #D5B8BC

    oklch(80.9% 0.034 8.4)

  5. Step 400

    400

    #BF939A

    oklch(70.7% 0.054 7.9)

  6. Step 500

    500

    #AE7881

    oklch(63% 0.069 8.2)

  7. Step 600

    600

    #99616B

    oklch(55.6% 0.074 8.1)

  8. Step 700

    700

    #835059

    oklch(49.2% 0.069 8.5)

  9. Step 800

    800

    #6A4149

    oklch(42.6% 0.058 7.1)

  10. Step 900

    900

    #57383D

    oklch(37.9% 0.045 8.8)

  11. Step 950

    950 (this color)

    #402D30

    oklch(32% 0.028 8.3)

Export this scale for Tailwind in the Tailwind colors tool

#402D30 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)#3030300.031
Deuteranopia (no green cones)#3433300.028
Tritanopia (no blue cones)#442C2E0.008
Achromatopsia (no color)#3232320.029

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D30

    #402D30

    oklch(32% 0.028 8.3)

  • #213836

    #213836

    oklch(32.1% 0.029 188.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D30

    #402D30

    oklch(32% 0.028 8.3)

  • #3D2D38

    #3D2D38

    oklch(32% 0.03 338.1)

  • #402E28

    #402E28

    oklch(32% 0.029 39.2)

Open the analogous palette in the generator

Split complementary

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

  • #402D30

    #402D30

    oklch(32% 0.028 8.3)

  • #27372D

    #27372D

    oklch(31.9% 0.028 157)

  • #22373D

    #22373D

    oklch(32.2% 0.029 217.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D30

    #402D30

    oklch(32% 0.028 8.3)

  • #2F3626

    #2F3626

    oklch(32.1% 0.029 127.2)

  • #283441

    #283441

    oklch(32% 0.028 250.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D30

    #402D30

    oklch(32% 0.028 8.3)

  • #373322

    #373322

    oklch(32% 0.029 96.5)

  • #213836

    #213836

    oklch(32.1% 0.029 188.9)

  • #2F3242

    #2F3242

    oklch(32.1% 0.029 276.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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