#240C54 Hex Color

A deep and somber near-black violet

Hex color #240c54 graphic
This intense, near-black violet feels cold and somber, anchoring designs with a sense of serious mystery. Because it is so dark, use #240c54 as a dominant background for dark mode interfaces rather than text. It pairs exceptionally well with muted gold accents or soft cream typography, where the high contrast creates a luxurious, high-end look without feeling harsh on the eyes.

Questions about #240c54

What is #240c54 in RGB, HSL and CMYK?
In RGB, #240c54 is rgb(36, 12, 84), in HSL hsl(260, 75%, 19%) and in CMYK 57%, 86%, 0%, 67%. Browse more shades of purple with names and hex codes.
What colors pair well with the deep violet #240c54?
#240c54 works best when contrasted with lighter, softer tones to prevent the design from feeling too heavy or claustrophobic. Try pairing this deep shade with cream for readability or muted gold to achieve a high-end, sophisticated aesthetic that feels both modern and grounded.
Should I use #240c54 for text or backgrounds?
Because #240c54 is extremely dark and sits close to black on the spectrum, it is best utilized as a dominant background color for immersive dark mode interfaces. Avoid using it for body text as it lacks sufficient contrast against standard dark gray or black backgrounds.
Is #240c54 readable on white or black?
#240c54 has a 16.72:1 contrast ratio on white and 1.25: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.