#2C166D
A dark, moderate purple closely aligning with Midnightblue.
About #2C166D
When working with digital screens, the color #2C166D is rendered by mixing light. Its closest recognized web color is Midnightblue. Its digital footprint relies on 44 parts red, 22 parts green, and 109 parts blue light.
Translating this color to physical media requires the CMYK color model. To reproduce this shade on paper, a printer utilizes 60% cyan and 80% magenta inks. The HSL representation is 255.2° hue, 66.4% saturation, and 25.7% lightness.
Web Content Accessibility Guidelines (WCAG) dictate how we should use this color. To prevent eye strain, #FFFFFF text pairs best with this hex code. You can view the detailed AAA and AA pass/fail metrics in the table below.
Color Space Conversions
HEX#2C166D
RGB44, 22, 109
HSL255.2°, 66.4%, 25.7%
CMYK60%, 80%, 0%, 57%
HSV255.2°, 79.8%, 42.7%
LAB16.6, 34.8, -46.4
XYZ4.1, 2.2, 14.7
Decimal2889325
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
14.56:1
Text on #FFFFFF
AAA
1.44:1
Text on #000000
FAIL
13.91:1
Text on #F8FAFC
AAA
1.23:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #2C166D;
}
.text-color {
color: #2C166D;
}
.border-color {
border: 2px solid #2C166D;
}