#40474F

Closest named color: Charcoal Grey (#3C4142). oklch(39.5% 0.016 251.8), rgb(64, 71, 79).

Aa

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

About this color

#40474F is a dark close to neutral grey. In OKLCH its lightness is 39%, its chroma 0.016. It has too little chroma to lean warm or cool. The nearest named color is Charcoal Grey (#3C4142), ΔE 0.026 away. White text reads best on it, at 9.40:1.

Hue familyNeutrals
Lightnessdark (39%)
Chromaclose to neutral grey (0.016)
Temperatureneutral
Nearest nameCharcoal Grey (#3C4142)
Black text2.23:1
White text9.40:1

Values

HEX#40474F
RGBrgb(64, 71, 79)
HSLhsl(212, 10%, 28%)
OKLCHoklch(39.5% 0.016 251.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 #40474F 9.40:1 AAA Lc -96.0 Preferred for body text
Black text on #40474F 2.23:1 Fails Lc 12.2 Not readable
#40474F text on white 9.40:1 AAA Lc 91.8 Preferred for body text
#40474F text on black 2.23:1 Fails Lc -10.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 900.

  1. Step 50

    50

    #F5F5F6

    oklch(97% 0.001 286.4)

  2. Step 100

    100

    #E8EAEC

    oklch(93.6% 0.003 247.9)

  3. Step 200

    200

    #D6D9DE

    oklch(88.4% 0.008 260.7)

  4. Step 300

    300

    #BBC1C8

    oklch(80.8% 0.012 252.1)

  5. Step 400

    400

    #98A2AD

    oklch(70.8% 0.02 250.7)

  6. Step 500

    500

    #7F8B99

    oklch(63.2% 0.025 252.3)

  7. Step 600

    600

    #687583

    oklch(55.7% 0.027 250.3)

  8. Step 700

    700

    #56626F

    oklch(49.1% 0.026 250.5)

  9. Step 800

    800

    #47505A

    oklch(42.7% 0.02 251.1)

  10. Step 900

    900 (this color)

    #40474F

    oklch(39.5% 0.016 251.8)

  11. Step 950

    950

    #23272B

    oklch(27% 0.009 248.2)

Export this scale for Tailwind in the Tailwind colors tool

#40474F 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)#44474F0.006
Deuteranopia (no green cones)#42464F0.004
Tritanopia (no blue cones)#3C494A0.014
Achromatopsia (no color)#4646460.016

Harmonies

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

Complementary

The opposite hue (180°).

  • #40474F

    #40474F

    oklch(39.5% 0.016 251.8)

  • #4C453D

    #4C453D

    oklch(39.5% 0.016 71)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40474F

    #40474F

    oklch(39.5% 0.016 251.8)

  • #3D484D

    #3D484D

    oklch(39.4% 0.017 227)

  • #45454F

    #45454F

    oklch(39.4% 0.017 285.6)

Open the analogous palette in the generator

Split complementary

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

  • #40474F

    #40474F

    oklch(39.5% 0.016 251.8)

  • #4E443F

    #4E443F

    oklch(39.5% 0.016 48.3)

  • #48473D

    #48473D

    oklch(39.6% 0.016 102.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40474F

    #40474F

    oklch(39.5% 0.016 251.8)

  • #4F4344

    #4F4344

    oklch(39.6% 0.017 12.2)

  • #43483F

    #43483F

    oklch(39.4% 0.016 131)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40474F

    #40474F

    oklch(39.5% 0.016 251.8)

  • #4D4349

    #4D4349

    oklch(39.5% 0.017 341.2)

  • #4C453D

    #4C453D

    oklch(39.5% 0.016 71)

  • #3F4943

    #3F4943

    oklch(39.4% 0.016 159.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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