#403337

Closest named color: Onyx (#343A40). oklch(33.7% 0.02 357.8), rgb(64, 51, 55).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessdark (34%)
Chromaclose to neutral grey (0.020)
Temperatureneutral
Nearest nameOnyx (#343A40)
Black text1.74:1
White text12.02:1

Values

HEX#403337
RGBrgb(64, 51, 55)
HSLhsl(342, 11%, 23%)
OKLCHoklch(33.7% 0.02 357.8)

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 #403337 12.02:1 AAA Lc -101.1 Preferred for body text
Black text on #403337 1.74:1 Fails Lc 0.0 Not readable
#403337 text on white 12.02:1 AAA Lc 97.5 Preferred for body text
#403337 text on black 1.74: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

    #ECE9EA

    oklch(93.7% 0.003 354.7)

  3. Step 200

    200

    #DED7D9

    oklch(88.5% 0.008 357.8)

  4. Step 300

    300

    #C9BDC0

    oklch(80.9% 0.014 0.4)

  5. Step 400

    400

    #AE9BA0

    oklch(70.8% 0.023 359.9)

  6. Step 500

    500

    #9A8289

    oklch(63.1% 0.031 358.6)

  7. Step 600

    600

    #846C73

    oklch(55.7% 0.032 358.8)

  8. Step 700

    700

    #705A61

    oklch(49.2% 0.031 357.2)

  9. Step 800

    800

    #5B494F

    oklch(42.6% 0.026 356.3)

  10. Step 900

    900 (this color)

    #403337

    oklch(33.7% 0.02 357.8)

  11. Step 950

    950

    #2C2426

    oklch(27% 0.013 1.1)

Export this scale for Tailwind in the Tailwind colors tool

#403337 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)#3435370.022
Deuteranopia (no green cones)#3737370.020
Tritanopia (no blue cones)#4232340.006
Achromatopsia (no color)#3636360.020

Harmonies

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

Complementary

The opposite hue (180°).

  • #403337

    #403337

    oklch(33.7% 0.02 357.8)

  • #2C3B37

    #2C3B37

    oklch(33.8% 0.021 176.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #403337

    #403337

    oklch(33.7% 0.02 357.8)

  • #3D343C

    #3D343C

    oklch(33.8% 0.019 329.6)

  • #413331

    #413331

    oklch(33.6% 0.021 27.7)

Open the analogous palette in the generator

Split complementary

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

  • #403337

    #403337

    oklch(33.7% 0.02 357.8)

  • #303A31

    #303A31

    oklch(33.6% 0.021 147.9)

  • #2B3A3C

    #2B3A3C

    oklch(33.6% 0.02 206.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #403337

    #403337

    oklch(33.7% 0.02 357.8)

  • #36392D

    #36392D

    oklch(33.8% 0.021 118.9)

  • #2E3940

    #2E3940

    oklch(33.7% 0.019 236.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #403337

    #403337

    oklch(33.7% 0.02 357.8)

  • #3B372C

    #3B372C

    oklch(33.7% 0.019 90.4)

  • #2C3B37

    #2C3B37

    oklch(33.8% 0.021 176.9)

  • #333742

    #333742

    oklch(33.7% 0.02 269.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #403337 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.