Closest to Dark Slate Gray
#334155
Color conversions
Reference values for common CSS, design, and accessibility formats.
| Format | Value | Preview | Copy |
|---|---|---|---|
| HEX | 334155 | ||
| HEX with # | #334155 | ||
| RGB | rgb(51, 65, 85) | ||
| RGBA | rgba(51, 65, 85, 1) | ||
| HSL | hsl(215.29 25% 26.67%) | ||
| HSLA | hsla(215.29, 25%, 26.67%, 1) | ||
| HSV | hsv(215.29, 40%, 33.33%) | ||
| CMYK | cmyk(40%, 23.53%, 0%, 66.67%) | ||
| OKLCH | oklch(37.17% 0.0392 257.29) |
Closest named matches
Color modifications
Lighter shades
Saturation steps
Suggested pairings
Split-complementary
Try this combo as a gradientUse this color in CSS
--color: #334155;
bg-[#334155]
Accessibility quick-check
White text
10.35:1
AAA normal
Black text
2.03:1
Decorative only
Reference notes
#334155 is a deep, soft blue color closest to Dark Slate Gray. The color has RGB channels of 51, 65, and 85; in HSL terms, it is centered near 215 degrees with 25% saturation and 27% lightness. In a design system, this cool reading is a useful shortcut for deciding whether the color should act as a primary accent, a supporting surface, or a quiet divider. The safest usage pattern is to test it against both light and dark surfaces, then reserve the weaker text pairing for decoration rather than essential labels. If the color feels too forceful at full strength, the lighter, darker, and desaturated variants usually provide a calmer path for production UI. For editorial or product interfaces, reserve the most saturated use for accents and repeat softer variants in borders, labels, or background fills. This makes it useful for interfaces that need weight, contrast, or a more formal visual register. In CSS systems, define it as a custom property first so variations, shadows, and gradients can stay consistent.