#404152

Closest named color: Charcoal Grey (#3C4142). oklch(38.1% 0.029 282.3), rgb(64, 65, 82).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessdark (38%)
Chromaclose to neutral grey (0.029)
Temperatureneutral
Nearest nameCharcoal Grey (#3C4142)
Black text2.09:1
White text10.01:1

Values

HEX#404152
RGBrgb(64, 65, 82)
HSLhsl(237, 12%, 29%)
OKLCHoklch(38.1% 0.029 282.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 #404152 10.01:1 AAA Lc -97.4 Preferred for body text
Black text on #404152 2.09:1 Fails Lc 10.7 Not readable
#404152 text on white 10.01:1 AAA Lc 93.3 Preferred for body text
#404152 text on black 2.09:1 Fails Lc -9.2 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

    #F5F5F7

    oklch(97.1% 0.003 286.4)

  2. Step 100

    100

    #E9E9EE

    oklch(93.5% 0.007 286.3)

  3. Step 200

    200

    #D8D8E1

    oklch(88.5% 0.012 286.1)

  4. Step 300

    300

    #BEBFCF

    oklch(80.9% 0.022 283)

  5. Step 400

    400

    #9D9EB6

    oklch(70.6% 0.035 283.6)

  6. Step 500

    500

    #8587A4

    oklch(63.2% 0.043 282)

  7. Step 600

    600

    #6E708F

    oklch(55.5% 0.048 281.8)

  8. Step 700

    700

    #5C5E7A

    oklch(49.1% 0.045 281.4)

  9. Step 800

    800

    #4B4D63

    oklch(42.7% 0.036 280.7)

  10. Step 900

    900 (this color)

    #404152

    oklch(38.1% 0.029 282.3)

  11. Step 950

    950

    #25252F

    oklch(26.9% 0.018 285.1)

Export this scale for Tailwind in the Tailwind colors tool

#404152 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)#3D43530.007
Deuteranopia (no green cones)#3C42520.007
Tritanopia (no blue cones)#3C44470.025
Achromatopsia (no color)#4242420.029

Harmonies

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

Complementary

The opposite hue (180°).

  • #404152

    #404152

    oklch(38.1% 0.029 282.3)

  • #454332

    #454332

    oklch(38% 0.028 102)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #404152

    #404152

    oklch(38.1% 0.029 282.3)

  • #384452

    #384452

    oklch(38.2% 0.029 252.5)

  • #483E4E

    #483E4E

    oklch(38% 0.03 312.8)

Open the analogous palette in the generator

Split complementary

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

  • #404152

    #404152

    oklch(38.1% 0.029 282.3)

  • #4C4032

    #4C4032

    oklch(38% 0.028 71.1)

  • #3D4636

    #3D4636

    oklch(38.1% 0.029 131.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #404152

    #404152

    oklch(38.1% 0.029 282.3)

  • #503E37

    #503E37

    oklch(38.1% 0.028 42.3)

  • #35483E

    #35483E

    oklch(38.2% 0.029 161.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #404152

    #404152

    oklch(38.1% 0.029 282.3)

  • #513D3E

    #513D3E

    oklch(38.2% 0.028 15.1)

  • #454332

    #454332

    oklch(38% 0.028 102)

  • #304847

    #304847

    oklch(38.2% 0.03 192.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #404152 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.