#40198C Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This dark, saturated violet carries a weight that feels both mysterious and structured. While the hex code #40198c works well as a moody background for gaming or tech interfaces, it can quickly overwhelm a design if used in large blocks. Pair it with soft cream or pastel yellow to balance its intensity. Its high contrast ratio makes it a reliable choice for accessible, readable white text.
Questions about #40198c
What is #40198c in RGB, HSL and CMYK?
In RGB, #40198c is rgb(64, 25, 140), in HSL hsl(260, 70%, 32%) and in CMYK 54%, 82%, 0%, 45%.
Is #40198c readable on white or black?
#40198c has a 12.09:1 contrast ratio on white and 1.73: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.