#hexpedia

Closest to Midnight Blue

#34013F

Color conversions

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

FormatValueCopy
HEX34013F
HEX with ##34013F
RGBrgb(52, 1, 63)
RGBArgba(52, 1, 63, 1)
HSLhsl(289.35 96.88% 12.55%)
HSLAhsla(289.35, 96.88%, 12.55%, 1)
HSVhsv(289.35, 98.41%, 24.71%)
CMYKcmyk(17.46%, 98.41%, 0%, 75.29%)
OKLCHoklch(23.84% 0.1126 319.43)

Closest named matches

Color modifications

Suggested pairings

Use this color in CSS

Accessibility quick-check

White text

17.18:1

AAA normal

Black text

1.22:1

Decorative only

Reference notes

#34013F is a very deep, saturated magenta color closest to Midnight Blue. The color has RGB channels of 52, 1, and 63; in HSL terms, it is centered near 289 degrees with 97% saturation and 13% lightness. In a design system, this balanced 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.