#40332F

Closest named color: Onyx (#343A40). oklch(33.4% 0.02 37.8), rgb(64, 51, 47).

Aa

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

About this color

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

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

Values

HEX#40332F
RGBrgb(64, 51, 47)
HSLhsl(14, 15%, 22%)
OKLCHoklch(33.4% 0.02 37.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 #40332F 12.12:1 AAA Lc -101.2 Preferred for body text
Black text on #40332F 1.73:1 Fails Lc 0.0 Not readable
#40332F text on white 12.12:1 AAA Lc 97.7 Preferred for body text
#40332F text on black 1.73: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

    #F7F5F4

    oklch(97.1% 0.003 48.7)

  2. Step 100

    100

    #EDE9E8

    oklch(93.7% 0.005 34.3)

  3. Step 200

    200

    #DED7D5

    oklch(88.4% 0.008 36.6)

  4. Step 300

    300

    #CABDBA

    oklch(80.8% 0.015 33.1)

  5. Step 400

    400

    #AF9C96

    oklch(70.8% 0.024 38.3)

  6. Step 500

    500

    #9B837C

    oklch(63% 0.031 36.8)

  7. Step 600

    600

    #866D65

    oklch(55.7% 0.034 38.5)

  8. Step 700

    700

    #715B54

    oklch(49.1% 0.031 38.4)

  9. Step 800

    800

    #5C4A45

    oklch(42.6% 0.026 36)

  10. Step 900

    900 (this color)

    #40332F

    oklch(33.4% 0.02 37.8)

  11. Step 950

    950

    #2C2422

    oklch(26.9% 0.013 34.3)

Export this scale for Tailwind in the Tailwind colors tool

#40332F 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)#36342F0.018
Deuteranopia (no green cones)#39372F0.017
Tritanopia (no blue cones)#4331320.011
Achromatopsia (no color)#3636360.020

Harmonies

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

Complementary

The opposite hue (180°).

  • #40332F

    #40332F

    oklch(33.4% 0.02 37.8)

  • #2B393D

    #2B393D

    oklch(33.4% 0.02 217.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40332F

    #40332F

    oklch(33.4% 0.02 37.8)

  • #403234

    #403234

    oklch(33.3% 0.02 8.6)

  • #3E352B

    #3E352B

    oklch(33.5% 0.021 70)

Open the analogous palette in the generator

Split complementary

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

  • #40332F

    #40332F

    oklch(33.4% 0.02 37.8)

  • #2B3A38

    #2B3A38

    oklch(33.4% 0.02 186.2)

  • #2E3840

    #2E3840

    oklch(33.5% 0.02 242.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40332F

    #40332F

    oklch(33.4% 0.02 37.8)

  • #2E3A32

    #2E3A32

    oklch(33.5% 0.021 155.9)

  • #343641

    #343641

    oklch(33.5% 0.02 277.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40332F

    #40332F

    oklch(33.4% 0.02 37.8)

  • #33392D

    #33392D

    oklch(33.5% 0.022 129.2)

  • #2B393D

    #2B393D

    oklch(33.4% 0.02 217.1)

  • #39343F

    #39343F

    oklch(33.5% 0.02 305.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40332F 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.