#240F42

A very dark, moderate purple closely aligning with Midnightblue.

About #240F42

Visually, #240F42 is defined as a moderate purple. Designers often compare it to the standard color Midnightblue. To achieve this exact tint on a monitor, you would use an RGB mix of 36, 15, and 66.

While screens use RGB, printing presses rely on Cyan, Magenta, Yellow, and Key (black). Its ink density profile breaks down to 45% cyan, 77% magenta, 0% yellow, and 74% black. The HSL representation is 264.7° hue, 63.0% saturation, and 15.9% lightness.

Ensuring your text is legible against this background is a key part of web design. To prevent eye strain, #FFFFFF text pairs best with this hex code. Be sure to check our contrast matrix below to see exactly how it performs against common backgrounds.

Color Space Conversions

HEX#240F42
RGB36, 15, 66
HSL264.7°, 63.0%, 15.9%
CMYK45%, 77%, 0%, 74%
HSV264.7°, 77.3%, 25.9%
LAB9.9, 23.7, -28.3
XYZ1.9, 1.1, 5.3
Decimal2363202

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

17.18:1
Text on #FFFFFF
AAA
1.22:1
Text on #000000
FAIL
16.42:1
Text on #F8FAFC
AAA
1.04:1
Text on #0F172A
FAIL

CSS Implementation

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

Similar Colors

Midnightblue
#191970