#240742

A very dark, vivid purple closely aligning with Midnightblue.

About #240742

The precise color #240742 is an excellent choice for modern design projects. If you're using CSS, you might find it aligns closely with Midnightblue. This translates to an RGB value of rgb(36, 7, 66).

For print applications, it's crucial to understand its CMYK makeup. The color uses 45% Cyan, 89% Magenta, 0% Yellow, and 74% Black. With a hue angle of 269.5 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. Strict adherence to these ratios protects visually impaired users from unreadable interfaces.

Color Space Conversions

HEX#240742
RGB36, 7, 66
HSL269.5°, 80.8%, 14.3%
CMYK45%, 89%, 0%, 74%
HSV269.5°, 89.4%, 25.9%
LAB8.3, 28.2, -30.8
XYZ1.8, 0.9, 5.2
Decimal2361154

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

17.74:1
Text on #FFFFFF
AAA
1.18:1
Text on #000000
FAIL
16.95:1
Text on #F8FAFC
AAA
1.01:1
Text on #0F172A
FAIL

CSS Implementation

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

Similar Colors

Midnightblue
#191970