#404852

Closest named color: Charcoal Grey (#3C4142). oklch(39.8% 0.02 254.1), rgb(64, 72, 82).

Aa

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

About this color

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

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

Values

HEX#404852
RGBrgb(64, 72, 82)
HSLhsl(213, 12%, 29%)
OKLCHoklch(39.8% 0.02 254.1)

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 #404852 9.26:1 AAA Lc -95.7 Preferred for body text
Black text on #404852 2.26:1 Fails Lc 12.6 Not readable
#404852 text on white 9.26:1 AAA Lc 91.4 Preferred for body text
#404852 text on black 2.26:1 Fails Lc -11.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

    #F4F5F7

    oklch(97% 0.003 264.5)

  2. Step 100

    100

    #E8EAED

    oklch(93.6% 0.005 258.3)

  3. Step 200

    200

    #D5D9DF

    oklch(88.4% 0.009 258.3)

  4. Step 300

    300

    #BAC1CA

    oklch(80.8% 0.015 254.6)

  5. Step 400

    400

    #97A2B0

    oklch(70.8% 0.024 254.4)

  6. Step 500

    500

    #7D8B9C

    oklch(63.1% 0.03 253.3)

  7. Step 600

    600

    #667587

    oklch(55.7% 0.033 253.1)

  8. Step 700

    700

    #556272

    oklch(49.1% 0.03 253.7)

  9. Step 800

    800

    #46505D

    oklch(42.7% 0.025 255.1)

  10. Step 900

    900 (this color)

    #404852

    oklch(39.8% 0.02 254.1)

  11. Step 950

    950

    #22272D

    oklch(27% 0.013 253)

Export this scale for Tailwind in the Tailwind colors tool

#404852 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)#4548530.008
Deuteranopia (no green cones)#4346520.008
Tritanopia (no blue cones)#3B4A4B0.017
Achromatopsia (no color)#4747470.020

Harmonies

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

Complementary

The opposite hue (180°).

  • #404852

    #404852

    oklch(39.8% 0.02 254.1)

  • #4E463C

    #4E463C

    oklch(39.9% 0.02 73.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #404852

    #404852

    oklch(39.8% 0.02 254.1)

  • #3C4A4F

    #3C4A4F

    oklch(39.9% 0.02 221.5)

  • #464652

    #464652

    oklch(39.9% 0.02 285.5)

Open the analogous palette in the generator

Split complementary

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

  • #404852

    #404852

    oklch(39.8% 0.02 254.1)

  • #51443F

    #51443F

    oklch(39.8% 0.02 42.2)

  • #49483C

    #49483C

    oklch(39.9% 0.02 103.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #404852

    #404852

    oklch(39.8% 0.02 254.1)

  • #514344

    #514344

    oklch(39.8% 0.019 13.1)

  • #434A3F

    #434A3F

    oklch(39.9% 0.02 134)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #404852

    #404852

    oklch(39.8% 0.02 254.1)

  • #4F434A

    #4F434A

    oklch(39.8% 0.02 342.1)

  • #4E463C

    #4E463C

    oklch(39.9% 0.02 73.4)

  • #3E4B44

    #3E4B44

    oklch(39.9% 0.02 161.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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