#2C0F42
A very dark, moderate purple closely aligning with Midnightblue.
About #2C0F42
Visually, #2C0F42 is defined as a moderate purple. It is closely associated with the named CSS color Midnightblue. Its digital footprint relies on 44 parts red, 15 parts green, and 66 parts blue light.
When sending designs containing this color to a printer, the CMYK values come into play. This specific hue requires a mix of 33% C, 77% M, 0% Y, and 74% K. The HSL representation is 274.1° hue, 63.0% saturation, and 15.9% lightness.
Contrast ratios determine whether this color is safe for typography. 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#2C0F42
RGB44, 15, 66
HSL274.1°, 63.0%, 15.9%
CMYK33%, 77%, 0%, 74%
HSV274.1°, 77.3%, 25.9%
LAB11.1, 25.7, -26.3
XYZ2.2, 1.3, 5.3
Decimal2887490
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
16.75:1
Text on #FFFFFF
AAA
1.25:1
Text on #000000
FAIL
16.00:1
Text on #F8FAFC
AAA
1.07:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #2C0F42;
}
.text-color {
color: #2C0F42;
}
.border-color {
border: 2px solid #2C0F42;
}