#42166D

A dark, moderate purple closely aligning with Midnightblue.

About #42166D

The hex code #42166D represents a beautifully specific shade of purple. It is closely associated with the named CSS color Midnightblue. Its digital footprint relies on 66 parts red, 22 parts green, and 109 parts blue light.

For print applications, it's crucial to understand its CMYK makeup. The color uses 39% Cyan, 80% Magenta, 0% Yellow, and 57% Black. With a hue angle of 270.3 degrees, it sits comfortably in the purple spectrum.

Ensuring your text is legible against this background is a key part of web design. Mathematical luminance calculations suggest that #FFFFFF text provides the most optimal reading experience. Be sure to check our contrast matrix below to see exactly how it performs against common backgrounds.

Color Space Conversions

HEX#42166D
RGB66, 22, 109
HSL270.3°, 66.4%, 25.7%
CMYK39%, 80%, 0%, 57%
HSV270.3°, 79.8%, 42.7%
LAB19.4, 38.5, -41.7
XYZ5.3, 2.8, 14.7
Decimal4331117

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

13.40:1
Text on #FFFFFF
AAA
1.57:1
Text on #000000
FAIL
12.81:1
Text on #F8FAFC
AAA
1.33:1
Text on #0F172A
FAIL

CSS Implementation

.bg-color { background-color: #42166D; }
.text-color { color: #42166D; }
.border-color { border: 2px solid #42166D; }

Similar Colors

Midnightblue
#191970