#404040 — Tints, Shades & Color Values
#404040 is a dark, nearly neutral gray. In Tailwind CSS this exact color is the utility class neutral-700 (e.g. bg-neutral-700, text-neutral-700). Its nearest CSS named color is darkslategray (#2f4f4f). For readable text on a #404040 background, white text gives the strongest contrast (10.37:1). Because it is dark, #404040 suits text, navigation bars, and footers on light backgrounds, and its tints make natural hover and surface colors.
Color Values
| Hex | #404040 |
|---|---|
| RGB | rgb(64, 64, 64) |
| HSL | hsl(0, 0%, 25%) |
| HSV / HSB | 0°, 0%, 25% |
| Nearest named | darkslategray (#2f4f4f) |
Need these in another format? Use our hex to RGB converter for quick two-way conversion.
#404040 in Tailwind CSS (neutral-700)
#404040 ships with Tailwind CSS as neutral-700 — use it as bg-neutral-700, text-neutral-700, or border-neutral-700. It sits at step 700 of the neutral ramp; every other step links to its own page:
Browse the full Tailwind palette in the color library, or generate in-between steps with the tint & shade generator.
Tints of #404040 (Mixed with White)
Each step blends the base color toward white using new = old + (255 − old) × factor. Click a swatch to open it in the generator.
-
10% tint
#535353 -
20% tint
#666666 -
30% tint
#797979 -
40% tint
#8c8c8c -
50% tint
#a0a0a0 -
60% tint
#b3b3b3 -
70% tint
#c6c6c6 -
80% tint
#d9d9d9 -
90% tint
#ececec
Shades of #404040 (Mixed with Black)
Each step blends the base color toward black using new = old × (1 − factor).
-
10% shade
#3a3a3a -
20% shade
#333333 -
30% shade
#2d2d2d -
40% shade
#262626 -
50% shade
#202020 -
60% shade
#1a1a1a -
70% shade
#131313 -
80% shade
#0d0d0d -
90% shade
#060606
WCAG Contrast & Accessibility
Contrast ratios for text placed on a #404040 background. WCAG requires 4.5:1 for normal text (AA), 3:1 for large text (AA), and 7:1 for normal text (AAA).
| Text color | White text 10.37:1 — AA normal: Pass · AA large: Pass · AAA: Pass |
|---|---|
| Black text 2.03:1 — AA normal: Fail · AA large: Fail · AAA: Fail |
If neither pure white nor pure black reaches the level you need, pick a lighter tint of #404040 from the ramps above as the background instead — small lightness moves change contrast quickly. Test any other pair with the free contrast checker.
More gray colors in the library: #44403C (stone-700), #3F3F46 (zinc-700), #333333, #57534E (stone-600), #52525B (zinc-600), #27272A (zinc-800).
Frequently Asked Questions
-
What color is #404040?
#404040 is a dark, nearly neutral gray —
rgb(64, 64, 64). Its nearest CSS named color isdarkslategray. In Tailwind CSS it isneutral-700. -
How do I make tints and shades of #404040?
Mix #404040 with white for tints and with black for shades. A 20% tint of #404040 is
#666666and a 20% shade is#333333— the full 10%–90% ramps are precomputed on this page, or open #404040 in the generator for finer steps. -
What text color is readable on #404040?
White text gives the strongest contrast on a #404040 background at 10.37:1, which passes WCAG AA and AAA for normal text.
-
What is the Tailwind CSS class for #404040?
neutral-700— use it asbg-neutral-700,text-neutral-700, orborder-neutral-700. The full neutral 50–950 ramp is linked above.
Browse more colors in the color library, or start from any hex code on the HexTints homepage.
#404040? Put it on a free link-in-bio page →