#40145C Hex Color

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

Hex color #40145c graphic
#40145c is a deep, dim violet that anchors dark interfaces without feeling purely black. It pairs effectively with soft, muted yellows for striking UI elements. This hex code provides a 14.3:1 contrast ratio against white text, ensuring excellent readability for small body copy. Rely on this shade as a primary background color for gaming or premium brand projects where mystery is required.

Questions about #40145c

What is #40145c in RGB, HSL and CMYK?
In RGB, #40145c is rgb(64, 20, 92), in HSL hsl(277, 64%, 22%) and in CMYK 30%, 78%, 0%, 64%. Browse more shades of purple with names and hex codes.
What colors pair effectively with #40145c in UI design?
#40145c pairs best with soft, muted yellows or creamy off-whites to create striking visual contrast without harshness. Using a gentle gold or cream helps maintain the professional, mysterious atmosphere that this dark violet sets for your digital project.
Is #40145c suitable for text-heavy layouts?
#40145c functions exceptionally well as a background color for interfaces because it provides a strong 14.3:1 contrast ratio against white text. This ensures excellent readability for small body copy, allowing designers to maintain a moody aesthetic while keeping content clear and accessible.
Is #40145c readable on white or black?
#40145c has a 14.26:1 contrast ratio on white and 1.47: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.