#2A1F4D Hex Color

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

Hex color #2a1f4d graphic
This desaturated, deep violet feels heavy and serious. Because #2a1f4d is so dark and muted, it functions best as a base for dark-mode interfaces where white text provides necessary readability. It lacks the punch of bright purples, making it a better choice for professional, moody branding than for highlights. Pair it with soft cream or muted gold to cut the coldness. The hex code for this color is #2a1f4d.

Questions about #2a1f4d

What is #2a1f4d in RGB, HSL and CMYK?
In RGB, #2a1f4d is rgb(42, 31, 77), in HSL hsl(254, 43%, 21%) and in CMYK 45%, 60%, 0%, 70%.
What colors pair best with #2a1f4d?
Soft cream or muted gold tones work beautifully with #2a1f4d to cut through its inherent coldness. These lighter, warmer shades provide a high-contrast balance that prevents the deep violet from feeling too heavy or oppressive in professional layouts.
Is #2a1f4d a good choice for text?
Because #2a1f4d is very dark and desaturated, it lacks the necessary contrast for small body text against dark backgrounds. Use this color primarily for backgrounds or large UI elements, while keeping text white or very light for readability.
Is #2a1f4d readable on white or black?
#2a1f4d has a 14.98:1 contrast ratio on white and 1.40: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.