Closest to Midnight Blue
#2A0134
Color conversions
Reference values for common CSS, design, and accessibility formats.
| Format | Value | Preview | Copy |
|---|---|---|---|
| HEX | 2A0134 | ||
| HEX with # | #2A0134 | ||
| RGB | rgb(42, 1, 52) | ||
| RGBA | rgba(42, 1, 52, 1) | ||
| HSL | hsl(288.24 96.23% 10.39%) | ||
| HSLA | hsla(288.24, 96.23%, 10.39%, 1) | ||
| HSV | hsv(288.24, 98.08%, 20.39%) | ||
| CMYK | cmyk(19.23%, 98.08%, 0%, 79.61%) | ||
| OKLCH | oklch(21.01% 0.0987 318.79) |
Closest named matches
Color modifications
Lighter shades
Saturation steps
Suggested pairings
Split-complementary
Try this combo as a gradientUse this color in CSS
--color: #2A0134;
bg-[#2a0134]
Accessibility quick-check
White text
18.22:1
AAA normal
Black text
1.15:1
Decorative only
Reference notes
#2A0134 is a very deep, saturated magenta color closest to Midnight Blue. The color has RGB channels of 42, 1, and 52; in HSL terms, it is centered near 288 degrees with 96% saturation and 10% 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.