#40428E Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

Hex color #40428e graphic
A dark, cool indigo with restrained saturation, #40428e brings a serious, mysterious tone to visual systems. Use it as a supporting color or dark UI background, where its blue-violet depth suits finance, spirituality, uniforms, and night themes. White text has strong contrast at about 8.8:1. The hex code for this indigo is #40428e.

Questions about #40428e

What is #40428e in RGB, HSL and CMYK?
In RGB, #40428e is rgb(64, 66, 142), in HSL hsl(238, 38%, 40%) and in CMYK 55%, 54%, 0%, 44%. Browse more shades of purple with names and hex codes.
Does #40428e work as a background color?
White text provides strong contrast on #40428e, at roughly 8.8:1, making this dark indigo suitable for readable headings, buttons, and interface panels; verify the final text size and weight against WCAG requirements before publishing.
What colors pair well with #40428e?
#40428e pairs well with white and soft neutrals for clean contrast, while pale blue, lavender, or muted gold can create coordinated accents without competing with its cool indigo base. Use warmer accents sparingly when you want the palette to feel less formal.
Does #40428e feel warm or cool?
Because its blue and violet components dominate, #40428e reads as distinctly cool rather than warm. Its deep value and restrained saturation give designs a serious, calm, and slightly mysterious feel instead of a bright or playful one.
Is #40428e readable on white or black?
#40428e has a 8.79:1 contrast ratio on white and 2.38: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.