#5240B8 Hex Color

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

Hex color #5240b8 graphic
#5240b8 is a saturated, cool indigo that commands attention without being neon. Because of its intensity and weight, it functions best as a dominant background color or a primary brand identifier rather than a small accent. It pairs unexpectedly well with acidic lime or soft peach to break up the seriousness. White text maintains high legibility against this hex code, making it a solid choice for bold UI headers.

Questions about #5240b8

What is #5240b8 in RGB, HSL and CMYK?
In RGB, #5240b8 is rgb(82, 64, 184), in HSL hsl(249, 48%, 49%) and in CMYK 55%, 65%, 0%, 28%.
What colors pair best with #5240b8?
Because #5240b8 is an intense and saturated indigo, it balances beautifully against acidic lime or soft peach accents to prevent visual fatigue. White text offers the highest readability here, ensuring your primary headers remain accessible and sharp on modern digital interfaces.
Is #5240b8 suitable for large background areas?
Using #5240b8 as a dominant background color creates a commanding, high-energy aesthetic that draws the eye immediately. To keep the design balanced, pair it with light neutrals or thin, white typography so the saturation does not overwhelm the user experience.
Is #5240b8 readable on white or black?
#5240b8 has a 7.54:1 contrast ratio on white and 2.78: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.