#420042
A very dark, vivid magenta closely aligning with Midnightblue.
About #420042
The hex code #420042 represents a beautifully specific shade of magenta. Its closest recognized web color is Midnightblue. This translates to an RGB value of rgb(66, 0, 66).
While screens use RGB, printing presses rely on Cyan, Magenta, Yellow, and Key (black). The color uses 0% Cyan, 100% Magenta, 0% Yellow, and 74% Black. The HSL representation is 300.0° hue, 100.0% saturation, and 12.9% lightness.
From a UX and accessibility standpoint, contrast is paramount. The calculated luminance score dictates that #FFFFFF typography is the safest choice. Strict adherence to these ratios protects visually impaired users from unreadable interfaces.
Color Space Conversions
HEX#420042
RGB66, 0, 66
HSL300.0°, 100.0%, 12.9%
CMYK0%, 100%, 0%, 74%
HSV300.0°, 100.0%, 25.9%
LAB12.9, 37.2, -23.1
XYZ3.2, 1.6, 5.3
Decimal4325442
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
16.03:1
Text on #FFFFFF
AAA
1.31:1
Text on #000000
FAIL
15.32:1
Text on #F8FAFC
AAA
1.11:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #420042;
}
.text-color {
color: #420042;
}
.border-color {
border: 2px solid #420042;
}