#40323B

Closest named color: Onyx (#343A40). oklch(33.6% 0.025 339.8), rgb(64, 50, 59).

Aa

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

About this color

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

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

Values

HEX#40323B
RGBrgb(64, 50, 59)
HSLhsl(321, 12%, 22%)
OKLCHoklch(33.6% 0.025 339.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 #40323B 12.08:1 AAA Lc -101.2 Preferred for body text
Black text on #40323B 1.73:1 Fails Lc 0.0 Not readable
#40323B text on white 12.08:1 AAA Lc 97.6 Preferred for body text
#40323B 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

    #F7F5F6

    oklch(97.2% 0.002 345.2)

  2. Step 100

    100

    #ECE8EB

    oklch(93.5% 0.006 334)

  3. Step 200

    200

    #DED6DB

    oklch(88.4% 0.011 339.4)

  4. Step 300

    300

    #C9BCC4

    oklch(80.8% 0.018 340)

  5. Step 400

    400

    #AE9AA7

    oklch(70.8% 0.03 338.8)

  6. Step 500

    500

    #9A8191

    oklch(63.1% 0.038 339.7)

  7. Step 600

    600

    #856A7B

    oklch(55.6% 0.042 340.4)

  8. Step 700

    700

    #705868

    oklch(49% 0.039 338.8)

  9. Step 800

    800

    #5B4855

    oklch(42.6% 0.033 337.9)

  10. Step 900

    900 (this color)

    #40323B

    oklch(33.6% 0.025 339.8)

  11. Step 950

    950

    #2C2429

    oklch(27.1% 0.015 340.2)

Export this scale for Tailwind in the Tailwind colors tool

#40323B 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)#32353B0.026
Deuteranopia (no green cones)#36373B0.023
Tritanopia (no blue cones)#4232350.011
Achromatopsia (no color)#3636360.025

Harmonies

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

Complementary

The opposite hue (180°).

  • #40323B

    #40323B

    oklch(33.6% 0.025 339.8)

  • #2C3B32

    #2C3B32

    oklch(33.6% 0.025 158.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40323B

    #40323B

    oklch(33.6% 0.025 339.8)

  • #3B3341

    #3B3341

    oklch(33.5% 0.026 310.6)

  • #433234

    #433234

    oklch(33.7% 0.025 10.6)

Open the analogous palette in the generator

Split complementary

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

  • #40323B

    #40323B

    oklch(33.6% 0.025 339.8)

  • #333A2C

    #333A2C

    oklch(33.7% 0.026 129.3)

  • #283B3A

    #283B3A

    oklch(33.6% 0.024 192)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40323B

    #40323B

    oklch(33.6% 0.025 339.8)

  • #3A3728

    #3A3728

    oklch(33.5% 0.025 98.1)

  • #283A40

    #283A40

    oklch(33.5% 0.025 220.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40323B

    #40323B

    oklch(33.6% 0.025 339.8)

  • #3F3529

    #3F3529

    oklch(33.6% 0.025 71.9)

  • #2C3B32

    #2C3B32

    oklch(33.6% 0.025 158.4)

  • #2D3844

    #2D3844

    oklch(33.6% 0.026 250.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40323B 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.