#hexpedia

Closest to Dark Slate Blue

#042E60

Color conversions

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

FormatValueCopy
HEX042E60
HEX with ##042E60
RGBrgb(4, 46, 96)
RGBArgba(4, 46, 96, 1)
HSLhsl(212.61 92% 19.61%)
HSLAhsla(212.61, 92%, 19.61%, 1)
HSVhsv(212.61, 95.83%, 37.65%)
CMYKcmyk(95.83%, 52.08%, 0%, 62.35%)
OKLCHoklch(30.69% 0.0993 256.15)

Closest named matches

Color modifications

Suggested pairings

Use this color in CSS

Accessibility quick-check

White text

13.42:1

AAA normal

Black text

1.56:1

Decorative only

Reference notes

#042E60 is a deep, saturated blue color closest to Dark Slate Blue. The color has RGB channels of 4, 46, and 96; in HSL terms, it is centered near 213 degrees with 92% saturation and 20% 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.