#404151

Closest named color: Charcoal Grey (#3C4142). oklch(38.1% 0.027 282.2), rgb(64, 65, 81).

Aa

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

About this color

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

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

Values

HEX#404151
RGBrgb(64, 65, 81)
HSLhsl(236, 12%, 28%)
OKLCHoklch(38.1% 0.027 282.2)

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 #404151 10.03:1 AAA Lc -97.4 Preferred for body text
Black text on #404151 2.09:1 Fails Lc 10.6 Not readable
#404151 text on white 10.03:1 AAA Lc 93.3 Preferred for body text
#404151 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

    #BEBFCE

    oklch(80.8% 0.021 282.9)

  5. Step 400

    400

    #9D9FB5

    oklch(70.8% 0.032 281.4)

  6. Step 500

    500

    #8587A3

    oklch(63.2% 0.042 281.9)

  7. Step 600

    600

    #6F708E

    oklch(55.5% 0.046 283.3)

  8. Step 700

    700

    #5D5E78

    oklch(49.1% 0.041 283)

  9. Step 800

    800

    #4C4D62

    oklch(42.8% 0.035 282.7)

  10. Step 900

    900 (this color)

    #404151

    oklch(38.1% 0.027 282.2)

  11. Step 950

    950

    #25262F

    oklch(27.1% 0.017 280.2)

Export this scale for Tailwind in the Tailwind colors tool

#404151 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)#3D43520.007
Deuteranopia (no green cones)#3C42510.007
Tritanopia (no blue cones)#3C44460.025
Achromatopsia (no color)#4242420.027

Harmonies

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

Complementary

The opposite hue (180°).

  • #404151

    #404151

    oklch(38.1% 0.027 282.2)

  • #454333

    #454333

    oklch(38% 0.026 101.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #404151

    #404151

    oklch(38.1% 0.027 282.2)

  • #384451

    #384451

    oklch(38.1% 0.027 250.6)

  • #483F4D

    #483F4D

    oklch(38.2% 0.026 313.6)

Open the analogous palette in the generator

Split complementary

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

  • #404151

    #404151

    oklch(38.1% 0.027 282.2)

  • #4C4033

    #4C4033

    oklch(38% 0.027 69.1)

  • #3D4637

    #3D4637

    oklch(38.1% 0.027 132.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #404151

    #404151

    oklch(38.1% 0.027 282.2)

  • #503E37

    #503E37

    oklch(38.1% 0.028 42.3)

  • #36473E

    #36473E

    oklch(38% 0.027 161.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #404151

    #404151

    oklch(38.1% 0.027 282.2)

  • #503D3F

    #503D3F

    oklch(38.1% 0.027 11.3)

  • #454333

    #454333

    oklch(38% 0.026 101.6)

  • #324746

    #324746

    oklch(38% 0.026 192.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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