Color specimenNo. 04210752

#404040

Dark Gray

A deterministic reference card for #404040. Every value, scheme, and snippet below is computed from the hex — no database, no guesswork.

RGB
64, 64, 64
HSL
0°, 0%, 25%
Text
White on top

Tailwind CSS · neutral

tailwind · neutral 700

The Tailwind CSS utility classes bg-neutral-700, text-neutral-700, and friends all reference this hex value.

Scale context · neutral

Click any step to jump to its landing page.

Class name
neutral-700
Hex
#404040
Closest CSS named color
darkslategray
Full color breakdown
/color/404040

Developer snippets

Copy-ready code

Every snippet below is generated from the hex — not a hand-maintained table.

Conversions

Same color, seven encodings

Nearest matches

Closest in other design systems

Accessibility

Contrast against white & black

On white

The quick brown fox

Jumps over the lazy dog. Testing readability of #404040 as the text color.

10.37:1
AA passAAA passLarge pass

Rating · AAA

On black

The quick brown fox

Jumps over the lazy dog. Testing readability of #404040 as the text color.

2.03:1
AA failAAA failLarge fail

Rating · Fail

Recommendation

When using #404040 as a background, pair it with #ffffff text for the best WCAG contrast.

Contrast ratios only — one part of WCAG 2.1. Not a certification of accessibility or legal compliance.

Related Tailwind swatches

Other stops in neutral