#40048A Hex Color

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

Hex color #40048a graphic
A saturated, dark violet that carries heavy, authoritative weight. This shade feels formal and intense, making it a strong choice for high-contrast dark mode backgrounds or moody branding. The hex code for this color is #40048a. It pairs exceptionally well with muted gold accents, which emphasize its regal character. Use it sparingly, as its deep pigmentation can overpower lighter elements in a design.

Questions about #40048a

What is #40048a in RGB, HSL and CMYK?
In RGB, #40048a is rgb(64, 4, 138), in HSL hsl(267, 94%, 28%) and in CMYK 54%, 97%, 0%, 46%. Browse more shades of purple with names and hex codes.
What colors pair well with #40048a?
This deep violet works best when balanced by muted gold or warm cream to ground its intensity. Use a neutral charcoal or soft white to keep text readable, as #40048a is very dark and can overwhelm lighter elements if paired improperly.
Is #40048a suitable for text on a white background?
Using #40048a as body text on a standard white background is risky for accessibility because it does not provide enough contrast for small fonts. It is far more effective as a bold header or a background color with white text overlaid.
Is #40048a readable on white or black?
#40048a has a 13.10:1 contrast ratio on white and 1.60: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.