#404138

Closest named color: Charcoal Grey (#3C4142). oklch(37.1% 0.015 112.3), rgb(64, 65, 56).

Aa

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

About this color

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

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

Values

HEX#404138
RGBrgb(64, 65, 56)
HSLhsl(67, 7%, 24%)
OKLCHoklch(37.1% 0.015 112.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 #404138 10.33:1 AAA Lc -98.0 Preferred for body text
Black text on #404138 2.03:1 Fails Lc 9.9 Not readable
#404138 text on white 10.33:1 AAA Lc 94.0 Preferred for body text
#404138 text on black 2.03:1 Fails Lc -8.5 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

    #F5F5F4

    oklch(97% 0.001 106.4)

  2. Step 100

    100

    #EAEAE8

    oklch(93.6% 0.003 106.5)

  3. Step 200

    200

    #D9D9D5

    oklch(88.4% 0.005 106.5)

  4. Step 300

    300

    #C0C1B9

    oklch(80.8% 0.011 112.4)

  5. Step 400

    400

    #A0A295

    oklch(70.7% 0.019 114)

  6. Step 500

    500

    #898B7B

    oklch(63% 0.023 112.9)

  7. Step 600

    600

    #737564

    oklch(55.6% 0.026 112.7)

  8. Step 700

    700

    #616253

    oklch(49.1% 0.023 110.3)

  9. Step 800

    800

    #4F5044

    oklch(42.7% 0.019 111.1)

  10. Step 900

    900 (this color)

    #404138

    oklch(37.1% 0.015 112.3)

  11. Step 950

    950

    #262722

    oklch(27% 0.009 116.2)

Export this scale for Tailwind in the Tailwind colors tool

#404138 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)#4340370.005
Deuteranopia (no green cones)#4340380.006
Tritanopia (no blue cones)#41403E0.012
Achromatopsia (no color)#4040400.015

Harmonies

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

Complementary

The opposite hue (180°).

  • #404138

    #404138

    oklch(37.1% 0.015 112.3)

  • #403F48

    #403F48

    oklch(37.2% 0.015 290.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #404138

    #404138

    oklch(37.1% 0.015 112.3)

  • #443F37

    #443F37

    oklch(37% 0.015 79.7)

  • #3C423B

    #3C423B

    oklch(37.1% 0.014 141.2)

Open the analogous palette in the generator

Split complementary

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

  • #404138

    #404138

    oklch(37.1% 0.015 112.3)

  • #3C4048

    #3C4048

    oklch(37.1% 0.015 264.4)

  • #443E45

    #443E45

    oklch(37.2% 0.014 321.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #404138

    #404138

    oklch(37.1% 0.015 112.3)

  • #384247

    #384247

    oklch(37.2% 0.016 229.4)

  • #473D41

    #473D41

    oklch(37.2% 0.015 351.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #404138

    #404138

    oklch(37.1% 0.015 112.3)

  • #374343

    #374343

    oklch(37.2% 0.016 196.5)

  • #403F48

    #403F48

    oklch(37.2% 0.015 290.7)

  • #483D3C

    #483D3C

    oklch(37.1% 0.015 24)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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