#40372F

Closest named color: Onyx (#343A40). oklch(34.4% 0.019 63.8), rgb(64, 55, 47).

Aa

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

About this color

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

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

Values

HEX#40372F
RGBrgb(64, 55, 47)
HSLhsl(28, 15%, 22%)
OKLCHoklch(34.4% 0.019 63.8)

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 #40372F 11.63:1 AAA Lc -100.4 Preferred for body text
Black text on #40372F 1.80:1 Fails Lc 0.0 Not readable
#40372F text on white 11.63:1 AAA Lc 96.8 Preferred for body text
#40372F text on black 1.80: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

    #F6F5F4

    oklch(97.1% 0.002 67.8)

  2. Step 100

    100

    #ECE9E7

    oklch(93.6% 0.004 56.4)

  3. Step 200

    200

    #DDD8D4

    oklch(88.5% 0.008 61.4)

  4. Step 300

    300

    #C7BFB8

    oklch(80.9% 0.013 63.9)

  5. Step 400

    400

    #AB9E93

    oklch(70.7% 0.022 62.7)

  6. Step 500

    500

    #968678

    oklch(63% 0.028 63.5)

  7. Step 600

    600

    #817061

    oklch(55.7% 0.031 63.6)

  8. Step 700

    700

    #6D5E50

    oklch(49.2% 0.029 65.1)

  9. Step 800

    800

    #594C42

    oklch(42.7% 0.024 59.7)

  10. Step 900

    900 (this color)

    #40372F

    oklch(34.4% 0.019 63.8)

  11. Step 950

    950

    #2B2521

    oklch(27% 0.012 55.8)

Export this scale for Tailwind in the Tailwind colors tool

#40372F 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)#3A372E0.011
Deuteranopia (no green cones)#3C392F0.009
Tritanopia (no blue cones)#4335350.015
Achromatopsia (no color)#3939390.019

Harmonies

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

Complementary

The opposite hue (180°).

  • #40372F

    #40372F

    oklch(34.4% 0.019 63.8)

  • #313A42

    #313A42

    oklch(34.3% 0.019 245.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40372F

    #40372F

    oklch(34.4% 0.019 63.8)

  • #423633

    #423633

    oklch(34.5% 0.018 34.3)

  • #3C392E

    #3C392E

    oklch(34.4% 0.019 94.5)

Open the analogous palette in the generator

Split complementary

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

  • #40372F

    #40372F

    oklch(34.4% 0.019 63.8)

  • #2E3C3F

    #2E3C3F

    oklch(34.5% 0.019 212.2)

  • #363843

    #363843

    oklch(34.3% 0.019 277.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40372F

    #40372F

    oklch(34.4% 0.019 63.8)

  • #2E3C3A

    #2E3C3A

    oklch(34.3% 0.019 185.7)

  • #3B3741

    #3B3741

    oklch(34.5% 0.018 303.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40372F

    #40372F

    oklch(34.4% 0.019 63.8)

  • #323C34

    #323C34

    oklch(34.4% 0.019 151.1)

  • #313A42

    #313A42

    oklch(34.3% 0.019 245.2)

  • #3F353D

    #3F353D

    oklch(34.3% 0.019 332.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40372F 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.