#hexpedia

Closest to Dark Slate Gray

#404060

Color conversions

Reference values for common CSS, design, and accessibility formats.

FormatValueCopy
HEX404060
HEX with ##404060
RGBrgb(64, 64, 96)
RGBArgba(64, 64, 96, 1)
HSLhsl(240 20% 31.37%)
HSLAhsla(240, 20%, 31.37%, 1)
HSVhsv(240, 33.33%, 37.65%)
CMYKcmyk(33.33%, 33.33%, 0%, 62.35%)
OKLCHoklch(38.58% 0.054 283.58)

Closest named matches

Color modifications

Suggested pairings

Use this color in CSS

Accessibility quick-check

White text

9.9:1

AAA normal

Black text

2.12:1

Decorative only

Reference notes

The hex value #404060 sits in the blue range with a deep appearance and soft chroma. Measured through common web color formats, the channels resolve to rgb(64 64 96) and an HSL lightness of 31%, which explains its visual density. The cool cast matters because neighboring colors can make the same hex feel sharper, calmer, or more neutral than it appears in isolation. Because web color is device-dependent, treat the numeric conversion table as the stable reference and use the visual swatch as a quick sanity check. The linked variants and pairings give nearby colors for systematic palettes, while the CSS Forge links let the same value move directly into CSS experiments. For brand-adjacent work, compare the closest named colors before reusing it, because a familiar name can change how stakeholders describe the same swatch. Designers can use it in interfaces that need weight, contrast, or a more formal visual register. When combined with lighter or darker variants, it gives enough range for borders, fills, and active states.