#40342D

Closest named color: Onyx (#343A40). oklch(33.6% 0.021 52), rgb(64, 52, 45).

Aa

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

About this color

#40342D 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.035 away. White text reads best on it, at 12.02:1.

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

Values

HEX#40342D
RGBrgb(64, 52, 45)
HSLhsl(22, 17%, 21%)
OKLCHoklch(33.6% 0.021 52)

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 #40342D 12.02:1 AAA Lc -101.1 Preferred for body text
Black text on #40342D 1.74:1 Fails Lc 0.0 Not readable
#40342D text on white 12.02:1 AAA Lc 97.5 Preferred for body text
#40342D text on black 1.74: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

    #ECE9E7

    oklch(93.6% 0.004 56.4)

  3. Step 200

    200

    #DED8D4

    oklch(88.6% 0.009 56.3)

  4. Step 300

    300

    #C9BEB7

    oklch(80.9% 0.016 54.9)

  5. Step 400

    400

    #AE9D92

    oklch(70.8% 0.026 55.1)

  6. Step 500

    500

    #9A8478

    oklch(63% 0.032 50.4)

  7. Step 600

    600

    #856E61

    oklch(55.7% 0.035 51.2)

  8. Step 700

    700

    #705C50

    oklch(49.1% 0.032 52.7)

  9. Step 800

    800

    #5B4B42

    oklch(42.6% 0.026 51.1)

  10. Step 900

    900 (this color)

    #40342D

    oklch(33.6% 0.021 52)

  11. Step 950

    950

    #2C2521

    oklch(27.1% 0.013 51.6)

Export this scale for Tailwind in the Tailwind colors tool

#40342D 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)#37352D0.016
Deuteranopia (no green cones)#3A372D0.014
Tritanopia (no blue cones)#4432320.015
Achromatopsia (no color)#3636360.021

Harmonies

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

Complementary

The opposite hue (180°).

  • #40342D

    #40342D

    oklch(33.6% 0.021 52)

  • #2C3940

    #2C3940

    oklch(33.6% 0.021 231.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40342D

    #40342D

    oklch(33.6% 0.021 52)

  • #413332

    #413332

    oklch(33.6% 0.02 23)

  • #3C362B

    #3C362B

    oklch(33.6% 0.02 82.7)

Open the analogous palette in the generator

Split complementary

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

  • #40342D

    #40342D

    oklch(33.6% 0.021 52)

  • #2A3A3B

    #2A3A3B

    oklch(33.5% 0.021 201)

  • #313742

    #313742

    oklch(33.6% 0.021 262.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40342D

    #40342D

    oklch(33.6% 0.021 52)

  • #2C3B36

    #2C3B36

    oklch(33.7% 0.022 172.6)

  • #373541

    #373541

    oklch(33.6% 0.021 292.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40342D

    #40342D

    oklch(33.6% 0.021 52)

  • #313A30

    #313A30

    oklch(33.7% 0.021 142.4)

  • #2C3940

    #2C3940

    oklch(33.6% 0.021 231.7)

  • #3C333D

    #3C333D

    oklch(33.5% 0.021 322.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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