#40545C

Closest named color: Dark Slate Gray (#2F4F4F). oklch(43.2% 0.028 224.3), rgb(64, 84, 92).

Aa

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

About this color

#40545C is a dark close to neutral grey. In OKLCH its lightness is 43%, its chroma 0.028. It has too little chroma to lean warm or cool. The nearest named color is Dark Slate Gray (#2F4F4F), ΔE 0.035 away. White text reads best on it, at 7.95:1.

Hue familyNeutrals
Lightnessdark (43%)
Chromaclose to neutral grey (0.028)
Temperatureneutral
Nearest nameDark Slate Gray (#2F4F4F)
Black text2.64:1
White text7.95:1

Values

HEX#40545C
RGBrgb(64, 84, 92)
HSLhsl(197, 18%, 31%)
OKLCHoklch(43.2% 0.028 224.3)

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 #40545C 7.95:1 AAA Lc -92.3 Preferred for body text
Black text on #40545C 2.64:1 Fails Lc 16.4 Dividers and decoration only
#40545C text on white 7.95:1 AAA Lc 87.6 Fine for body text
#40545C text on black 2.64:1 Fails Lc -14.6 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 800.

  1. Step 50

    50

    #F4F6F6

    oklch(97.2% 0.002 197.1)

  2. Step 100

    100

    #E7EAEC

    oklch(93.5% 0.004 236.5)

  3. Step 200

    200

    #D3DADE

    oklch(88.4% 0.009 232.4)

  4. Step 300

    300

    #B6C3C8

    oklch(80.9% 0.016 222.7)

  5. Step 400

    400

    #90A4AD

    oklch(70.6% 0.026 226.6)

  6. Step 500

    500

    #748E99

    oklch(63% 0.034 225.4)

  7. Step 600

    600

    #5D7883

    oklch(55.6% 0.036 224.7)

  8. Step 700

    700

    #4C656F

    oklch(49.1% 0.034 224.4)

  9. Step 800

    800 (this color)

    #40545C

    oklch(43.2% 0.028 224.3)

  10. Step 900

    900

    #35444A

    oklch(37.6% 0.022 224.2)

  11. Step 950

    950

    #1F282B

    oklch(26.9% 0.014 220.1)

Export this scale for Tailwind in the Tailwind colors tool

#40545C 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)#4F535C0.022
Deuteranopia (no green cones)#4B4F5C0.021
Tritanopia (no blue cones)#3757560.020
Achromatopsia (no color)#5151510.028

Harmonies

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

Complementary

The opposite hue (180°).

  • #40545C

    #40545C

    oklch(43.2% 0.028 224.3)

  • #5E4C44

    #5E4C44

    oklch(43.3% 0.028 45.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40545C

    #40545C

    oklch(43.2% 0.028 224.3)

  • #3F5555

    #3F5555

    oklch(43.1% 0.027 196.2)

  • #465160

    #465160

    oklch(43.1% 0.029 256.2)

Open the analogous palette in the generator

Split complementary

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

  • #40545C

    #40545C

    oklch(43.2% 0.028 224.3)

  • #5F4A4C

    #5F4A4C

    oklch(43.2% 0.029 11.9)

  • #5A4E40

    #5A4E40

    oklch(43.2% 0.027 71.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40545C

    #40545C

    oklch(43.2% 0.028 224.3)

  • #5C4A54

    #5C4A54

    oklch(43.1% 0.029 343.9)

  • #535140

    #535140

    oklch(43.2% 0.027 101.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40545C

    #40545C

    oklch(43.2% 0.028 224.3)

  • #564C5B

    #564C5B

    oklch(43.2% 0.027 314.5)

  • #5E4C44

    #5E4C44

    oklch(43.3% 0.028 45.3)

  • #4A5445

    #4A5445

    oklch(43.2% 0.027 135.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40545C 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.