#2C0742

A very dark, vivid purple closely aligning with Midnightblue.

About #2C0742

The precise color #2C0742 is an excellent choice for modern design projects. It is closely associated with the named CSS color Midnightblue. This translates to an RGB value of rgb(44, 7, 66).

When sending designs containing this color to a printer, the CMYK values come into play. The color uses 33% Cyan, 89% Magenta, 0% Yellow, and 74% Black. Always request a physical proof before doing a large print run with this exact code.

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. You can view the detailed AAA and AA pass/fail metrics in the table below.

Color Space Conversions

HEX#2C0742
RGB44, 7, 66
HSL277.6°, 80.8%, 14.3%
CMYK33%, 89%, 0%, 74%
HSV277.6°, 89.4%, 25.9%
LAB9.6, 29.7, -28.6
XYZ2.1, 1.1, 5.3
Decimal2885442

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

17.27:1
Text on #FFFFFF
AAA
1.22:1
Text on #000000
FAIL
16.50:1
Text on #F8FAFC
AAA
1.03:1
Text on #0F172A
FAIL

CSS Implementation

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

Similar Colors

Midnightblue
#191970