#4040C6 Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

Somewhere between royal blue and midnight, #4040c6 is a saturated indigo with a cool, electric edge. Its darkness gives white text strong contrast, so it suits dark backgrounds, moody interfaces, and large type. It looks richer beside warm gold accents than beside plain grays. Reach for it as a supporting tone or accent rather than a full palette.
Questions about #4040c6
What is #4040c6 in RGB, HSL and CMYK?
In RGB, #4040c6 is rgb(64, 64, 198), in HSL hsl(240, 54%, 51%) and in CMYK 68%, 68%, 0%, 22%. Browse more shades of purple with names and hex codes.
What colors pair well with #4040c6?
Is #4040c6 readable on white or black?
#4040c6 has a 7.58:1 contrast ratio on white and 2.76: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.