#240F57
A dark, vivid purple closely aligning with Midnightblue.
About #240F57
The hex code #240F57 represents a beautifully specific shade of purple. Its closest recognized web color is Midnightblue. Its digital footprint relies on 36 parts red, 15 parts green, and 87 parts blue light.
Translating this color to physical media requires the CMYK color model. This specific hue requires a mix of 59% C, 83% M, 0% Y, and 66% K. Always request a physical proof before doing a large print run with this exact code.
When using this color as a background, text legibility must be considered. 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#240F57
RGB36, 15, 87
HSL257.5°, 70.6%, 20.0%
CMYK59%, 83%, 0%, 66%
HSV257.5°, 82.8%, 34.1%
LAB12.0, 30.4, -39.3
XYZ2.6, 1.4, 9.1
Decimal2363223
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
16.39:1
Text on #FFFFFF
AAA
1.28:1
Text on #000000
FAIL
15.67:1
Text on #F8FAFC
AAA
1.09:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #240F57;
}
.text-color {
color: #240F57;
}
.border-color {
border: 2px solid #240F57;
}