#40353A

Closest named color: Onyx (#343A40). oklch(34.3% 0.018 348.9), rgb(64, 53, 58).

Aa

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

About this color

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

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

Values

HEX#40353A
RGBrgb(64, 53, 58)
HSLhsl(333, 9%, 23%)
OKLCHoklch(34.3% 0.018 348.9)

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 #40353A 11.74:1 AAA Lc -100.6 Preferred for body text
Black text on #40353A 1.78:1 Fails Lc 0.0 Not readable
#40353A text on white 11.74:1 AAA Lc 97.0 Preferred for body text
#40353A text on black 1.78: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

    #F6F5F5

    oklch(97.1% 0.001 17.2)

  2. Step 100

    100

    #ECE9EA

    oklch(93.7% 0.003 354.7)

  3. Step 200

    200

    #DDD7DA

    oklch(88.5% 0.008 345.4)

  4. Step 300

    300

    #C8BDC2

    oklch(80.9% 0.014 348)

  5. Step 400

    400

    #AB9BA3

    oklch(70.6% 0.022 345.9)

  6. Step 500

    500

    #97838C

    oklch(63.1% 0.027 349)

  7. Step 600

    600

    #816D76

    oklch(55.7% 0.028 349.2)

  8. Step 700

    700

    #6D5B63

    oklch(49.2% 0.026 349.5)

  9. Step 800

    800

    #594A51

    oklch(42.7% 0.023 348.3)

  10. Step 900

    900 (this color)

    #40353A

    oklch(34.3% 0.018 348.9)

  11. Step 950

    950

    #2B2427

    oklch(26.9% 0.012 350.2)

Export this scale for Tailwind in the Tailwind colors tool

#40353A 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)#36373A0.018
Deuteranopia (no green cones)#38393A0.018
Tritanopia (no blue cones)#4235370.006
Achromatopsia (no color)#3838380.018

Harmonies

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

Complementary

The opposite hue (180°).

  • #40353A

    #40353A

    oklch(34.3% 0.018 348.9)

  • #303C37

    #303C37

    oklch(34.4% 0.018 168.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40353A

    #40353A

    oklch(34.3% 0.018 348.9)

  • #3D363F

    #3D363F

    oklch(34.4% 0.018 318.7)

  • #413535

    #413535

    oklch(34.2% 0.017 18)

Open the analogous palette in the generator

Split complementary

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

  • #40353A

    #40353A

    oklch(34.3% 0.018 348.9)

  • #343B32

    #343B32

    oklch(34.3% 0.018 138.7)

  • #2E3C3C

    #2E3C3C

    oklch(34.4% 0.018 196.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40353A

    #40353A

    oklch(34.3% 0.018 348.9)

  • #39392F

    #39392F

    oklch(34.1% 0.017 107.3)

  • #2F3B40

    #2F3B40

    oklch(34.3% 0.018 225.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40353A

    #40353A

    oklch(34.3% 0.018 348.9)

  • #3E382E

    #3E382E

    oklch(34.4% 0.019 80.5)

  • #303C37

    #303C37

    oklch(34.4% 0.018 168.1)

  • #333942

    #333942

    oklch(34.3% 0.018 258.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40353A 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.