#240F5F

A dark, vivid purple closely aligning with Midnightblue.

About #240F5F

The precise color #240F5F 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(36, 15, 95).

If you are designing for print, the four-color process is what matters most. This specific hue requires a mix of 62% C, 84% M, 0% Y, and 63% K. With a hue angle of 255.8 degrees, it sits comfortably in the purple spectrum.

From a UX and accessibility standpoint, contrast is paramount. Because it is a dark color, it is generally recommended to use #FFFFFF text. Always test your color combinations using a contrast checker before publishing.

Color Space Conversions

HEX#240F5F
RGB36, 15, 95
HSL255.8°, 72.7%, 21.6%
CMYK62%, 84%, 0%, 63%
HSV255.8°, 84.2%, 37.3%
LAB12.9, 32.9, -43.3
XYZ3.0, 1.5, 11.0
Decimal2363231

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

16.05:1
Text on #FFFFFF
AAA
1.31:1
Text on #000000
FAIL
15.34:1
Text on #F8FAFC
AAA
1.11:1
Text on #0F172A
FAIL

CSS Implementation

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

Similar Colors

Midnightblue
#191970