#5141A8 Hex Color

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

Hex color #5141a8 graphic
This bold indigo strikes a balance between deep purple and electric blue. It commands attention without feeling aggressive, making it a strong choice for UI accents or primary calls to action. The hex code #5141a8 offers a high 7.9:1 contrast ratio against white, ensuring perfect readability. Use this shade sparingly as a supporting color to keep layouts from feeling too heavy.

Questions about #5141a8

What is #5141a8 in RGB, HSL and CMYK?
In RGB, #5141a8 is rgb(81, 65, 168), in HSL hsl(249, 44%, 46%) and in CMYK 52%, 61%, 0%, 34%.
Where should I use #5141a8 in a user interface?
#5141a8 functions best as a high-contrast accent color for primary call-to-action buttons or navigation highlights. Because of its intense saturation, apply it sparingly against white backgrounds to guide user attention without overwhelming the overall layout or making text difficult to read.
What colors pair well with #5141a8?
Pair #5141a8 with soft, desaturated neutrals like off-white or light gray to let the intensity of the indigo stand out. For a more sophisticated palette, use it alongside complementary warm tones like soft peach to create a striking visual balance.
Is #5141a8 readable on white or black?
#5141a8 has a 7.86:1 contrast ratio on white and 2.67: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.