#40343D

Closest named color: Onyx (#343A40). oklch(34.1% 0.023 335), rgb(64, 52, 61).

Aa

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

About this color

#40343D is a dark close to neutral grey. In OKLCH its lightness is 34%, its chroma 0.023. 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.82:1.

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

Values

HEX#40343D
RGBrgb(64, 52, 61)
HSLhsl(315, 10%, 23%)
OKLCHoklch(34.1% 0.023 335)

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 #40343D 11.82:1 AAA Lc -100.7 Preferred for body text
Black text on #40343D 1.77:1 Fails Lc 0.0 Not readable
#40343D text on white 11.82:1 AAA Lc 97.1 Preferred for body text
#40343D 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

    #C8BDC5

    oklch(81% 0.016 335.1)

  5. Step 400

    400

    #AC9BA7

    oklch(70.8% 0.026 336.3)

  6. Step 500

    500

    #978292

    oklch(63.1% 0.034 334.3)

  7. Step 600

    600

    #826B7C

    oklch(55.6% 0.038 335.4)

  8. Step 700

    700

    #6E5969

    oklch(49% 0.036 334.6)

  9. Step 800

    800

    #594955

    oklch(42.6% 0.029 335)

  10. Step 900

    900 (this color)

    #40343D

    oklch(34.1% 0.023 335)

  11. Step 950

    950

    #2B2429

    oklch(27% 0.014 336.2)

Export this scale for Tailwind in the Tailwind colors tool

#40343D 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)#34363D0.022
Deuteranopia (no green cones)#37383D0.020
Tritanopia (no blue cones)#4134370.011
Achromatopsia (no color)#3737370.023

Harmonies

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

Complementary

The opposite hue (180°).

  • #40343D

    #40343D

    oklch(34.1% 0.023 335)

  • #2F3C33

    #2F3C33

    oklch(34.1% 0.023 154.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40343D

    #40343D

    oklch(34.1% 0.023 335)

  • #3B3542

    #3B3542

    oklch(34% 0.024 306)

  • #433437

    #433437

    oklch(34.3% 0.022 4.9)

Open the analogous palette in the generator

Split complementary

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

  • #40343D

    #40343D

    oklch(34.1% 0.023 335)

  • #353A2E

    #353A2E

    oklch(34% 0.021 125.9)

  • #2B3C3A

    #2B3C3A

    oklch(34.1% 0.022 187.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40343D

    #40343D

    oklch(34.1% 0.023 335)

  • #3C382B

    #3C382B

    oklch(34.1% 0.022 93)

  • #2B3B40

    #2B3B40

    oklch(34% 0.023 219)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40343D

    #40343D

    oklch(34.1% 0.023 335)

  • #41362C

    #41362C

    oklch(34.2% 0.023 64.2)

  • #2F3C33

    #2F3C33

    oklch(34.1% 0.023 154.8)

  • #2F3A43

    #2F3A43

    oklch(34.2% 0.022 243.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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