#240040 Hex Color

A shadowy purple with quiet intensity

Hex color #240040 graphic
Dark and highly muted, #240040 is a cool purple with a shadowy violet cast. Its low lightness gives layouts a serious, mysterious mood suited to luxury, gaming, spiritual, and counterculture branding. Use it as a dominant background with white type, which reaches about an 18.3:1 contrast ratio. The hex code #240040 also works as a strong anchor beside muted lavender or warm gold.

Questions about #240040

What is #240040 in RGB, HSL and CMYK?
In RGB, #240040 is rgb(36, 0, 64), in HSL hsl(274, 100%, 13%) and in CMYK 44%, 100%, 0%, 75%. Browse more shades of purple with names and hex codes.
What colors pair well with #240040?
Muted lavender and warm gold pair especially well with #240040, balancing its cool, shadowy purple with softer light and warmer contrast while preserving a refined, low-saturation mood across interfaces, packaging, and editorial palettes. Use lavender for a restrained monochromatic palette and gold for a richer luxury accent.
Is #240040 warm or cool?
#240040 reads as a cool purple because its deep violet cast leans toward blue rather than red, while its very low lightness keeps the hue shadowy, serious, and restrained in most layouts.
Is #240040 readable on white or black?
#240040 has a 18.27:1 contrast ratio on white and 1.14:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.