#40342B

Closest named color: Onyx (#343A40). oklch(33.5% 0.023 58.7), rgb(64, 52, 43).

Aa

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

About this color

#40342B 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.038 away. White text reads best on it, at 12.04:1.

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

Values

HEX#40342B
RGBrgb(64, 52, 43)
HSLhsl(26, 20%, 21%)
OKLCHoklch(33.5% 0.023 58.7)

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 #40342B 12.04:1 AAA Lc -101.1 Preferred for body text
Black text on #40342B 1.74:1 Fails Lc 0.0 Not readable
#40342B text on white 12.04:1 AAA Lc 97.6 Preferred for body text
#40342B 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

    #DED8D3

    oklch(88.6% 0.009 62.6)

  4. Step 300

    300

    #CABEB6

    oklch(80.9% 0.018 56.1)

  5. Step 400

    400

    #AE9D90

    oklch(70.7% 0.027 59.7)

  6. Step 500

    500

    #9A8575

    oklch(63.1% 0.035 59.4)

  7. Step 600

    600

    #856E5D

    oklch(55.6% 0.039 58.3)

  8. Step 700

    700

    #715C4D

    oklch(49.1% 0.036 57.3)

  9. Step 800

    800

    #5C4B3F

    oklch(42.7% 0.03 57)

  10. Step 900

    900 (this color)

    #40342B

    oklch(33.5% 0.023 58.7)

  11. Step 950

    950

    #2C251F

    oklch(27% 0.015 62.7)

Export this scale for Tailwind in the Tailwind colors tool

#40342B 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)#38352A0.015
Deuteranopia (no green cones)#3A372B0.014
Tritanopia (no blue cones)#4432320.017
Achromatopsia (no color)#3636360.023

Harmonies

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

Complementary

The opposite hue (180°).

  • #40342B

    #40342B

    oklch(33.5% 0.023 58.7)

  • #2C3941

    #2C3941

    oklch(33.6% 0.022 235.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40342B

    #40342B

    oklch(33.5% 0.023 58.7)

  • #423230

    #423230

    oklch(33.4% 0.024 26.6)

  • #3C3629

    #3C3629

    oklch(33.5% 0.023 86.1)

Open the analogous palette in the generator

Split complementary

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

  • #40342B

    #40342B

    oklch(33.5% 0.023 58.7)

  • #293A3D

    #293A3D

    oklch(33.5% 0.023 209.6)

  • #323643

    #323643

    oklch(33.4% 0.024 271.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40342B

    #40342B

    oklch(33.5% 0.023 58.7)

  • #2A3B37

    #2A3B37

    oklch(33.6% 0.023 178.7)

  • #383441

    #383441

    oklch(33.4% 0.023 299.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40342B

    #40342B

    oklch(33.5% 0.023 58.7)

  • #2F3A30

    #2F3A30

    oklch(33.5% 0.023 147.5)

  • #2C3941

    #2C3941

    oklch(33.6% 0.022 235.3)

  • #3E333D

    #3E333D

    oklch(33.7% 0.023 329)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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