#40343B

Closest named color: Onyx (#343A40). oklch(34.1% 0.021 342.4), rgb(64, 52, 59).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessdark (34%)
Chromaclose to neutral grey (0.021)
Temperatureneutral
Nearest nameOnyx (#343A40)
Black text1.77:1
White text11.84:1

Values

HEX#40343B
RGBrgb(64, 52, 59)
HSLhsl(325, 10%, 23%)
OKLCHoklch(34.1% 0.021 342.4)

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 #40343B 11.84:1 AAA Lc -100.8 Preferred for body text
Black text on #40343B 1.77:1 Fails Lc 0.0 Not readable
#40343B text on white 11.84:1 AAA Lc 97.2 Preferred for body text
#40343B text on black 1.77: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

    #F6F5F6

    oklch(97.1% 0.002 325.6)

  2. Step 100

    100

    #ECE9EB

    oklch(93.7% 0.004 337.4)

  3. Step 200

    200

    #DDD7DB

    oklch(88.5% 0.008 337.5)

  4. Step 300

    300

    #C8BDC3

    oklch(80.9% 0.015 343.3)

  5. Step 400

    400

    #AC9BA5

    oklch(70.7% 0.024 341.6)

  6. Step 500

    500

    #98828F

    oklch(63.1% 0.033 341.8)

  7. Step 600

    600

    #826C79

    oklch(55.7% 0.034 342)

  8. Step 700

    700

    #6E5A66

    oklch(49.2% 0.032 341.6)

  9. Step 800

    800

    #5A4953

    oklch(42.6% 0.028 342.2)

  10. Step 900

    900 (this color)

    #40343B

    oklch(34.1% 0.021 342.4)

  11. Step 950

    950

    #2B2428

    oklch(27% 0.013 342.7)

Export this scale for Tailwind in the Tailwind colors tool

#40343B 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)#35363B0.020
Deuteranopia (no green cones)#37383B0.020
Tritanopia (no blue cones)#4234360.009
Achromatopsia (no color)#3737370.021

Harmonies

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

Complementary

The opposite hue (180°).

  • #40343B

    #40343B

    oklch(34.1% 0.021 342.4)

  • #2F3C35

    #2F3C35

    oklch(34.2% 0.021 161.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40343B

    #40343B

    oklch(34.1% 0.021 342.4)

  • #3C3540

    #3C3540

    oklch(34.1% 0.021 313.3)

  • #423435

    #423435

    oklch(34.1% 0.02 13.4)

Open the analogous palette in the generator

Split complementary

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

  • #40343B

    #40343B

    oklch(34.1% 0.021 342.4)

  • #343A30

    #343A30

    oklch(33.9% 0.019 132.8)

  • #2C3C3B

    #2C3C3B

    oklch(34.2% 0.021 191.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40343B

    #40343B

    oklch(34.1% 0.021 342.4)

  • #3A392C

    #3A392C

    oklch(34.1% 0.022 103.8)

  • #2D3B40

    #2D3B40

    oklch(34.2% 0.02 221.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40343B

    #40343B

    oklch(34.1% 0.021 342.4)

  • #3F372C

    #3F372C

    oklch(34.2% 0.022 75.7)

  • #2F3C35

    #2F3C35

    oklch(34.2% 0.021 161.5)

  • #313943

    #313943

    oklch(34.1% 0.021 254.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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