#180828 Hex Color

A moody near-black with deep violet undertones

Hex color #180828 graphic
This nearly black, dim violet carries a moody weight that makes it an excellent alternative to standard black for dark UI backgrounds. The hex code #180828 offers high contrast for white text, ensuring readability in minimalist interfaces. Because it leans so dark, it can appear muddy in large areas, so use it sparingly as a dominant base or to ground brighter accent colors.

Questions about #180828

What is #180828 in RGB, HSL and CMYK?
In RGB, #180828 is rgb(24, 8, 40), in HSL hsl(270, 67%, 9%) and in CMYK 40%, 80%, 0%, 84%.
How should I use #180828 in UI design?
This deep violet serves as an excellent, softer alternative to pure black for backgrounds. Because #180828 is so dark, keep it as a base layer and pair it with high-contrast text like off-white to ensure your interface remains readable and sharp.
What colors pair well with #180828?
Since #180828 leans toward a desaturated violet, it benefits from lighter accents that cut through the darkness. Try pairing it with muted gold for luxury branding or soft lavender to create a cohesive, monochromatic depth in your color scheme.
Is #180828 readable on white or black?
#180828 has a 19.01:1 contrast ratio on white and 1.10: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.