#240057
A very dark, vivid purple closely aligning with Midnightblue.
About #240057
Visually, #240057 is defined as a vivid purple. If you're using CSS, you might find it aligns closely with Midnightblue. To achieve this exact tint on a monitor, you would use an RGB mix of 36, 0, and 87.
Translating this color to physical media requires the CMYK color model. The color uses 59% Cyan, 100% Magenta, 0% Yellow, and 66% Black. With a hue angle of 264.8 degrees, it sits comfortably in the purple spectrum.
Contrast ratios determine whether this color is safe for typography. 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#240057
RGB36, 0, 87
HSL264.8°, 100.0%, 17.1%
CMYK59%, 100%, 0%, 66%
HSV264.8°, 100.0%, 34.1%
LAB9.5, 37.7, -43.4
XYZ2.4, 1.1, 9.1
Decimal2359383
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
17.32:1
Text on #FFFFFF
AAA
1.21:1
Text on #000000
FAIL
16.55:1
Text on #F8FAFC
AAA
1.03:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #240057;
}
.text-color {
color: #240057;
}
.border-color {
border: 2px solid #240057;
}