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

#28186c is a saturated, deep indigo that carries the heavy weight of a midnight sky. This cool, authoritative tone functions best as a dominant dark base for corporate branding or moody UI layouts. Because it is so dark, use white or high-contrast pastels for text to ensure readability. The hex code for this dim, serious color is #28186c.
Questions about #28186c
What is #28186c in RGB, HSL and CMYK?
In RGB, #28186c is rgb(40, 24, 108), in HSL hsl(251, 64%, 26%) and in CMYK 63%, 78%, 0%, 58%. Browse more shades of purple with names and hex codes.
How can I effectively use #28186c in a user interface?
#28186c functions best as a dominant dark background or a heavy brand accent because of its intense, moody character. Always pair it with high-contrast elements, such as crisp white text or light, soft pastels, to maintain readability and avoid visual strain.
Does #28186c lean cool or warm in color theory?
#28186c is a decidedly cool-toned color, sitting deep within the blue-violet spectrum of the indigo range. This temperature creates a professional, authoritative, and serious mood that feels stable and reliable, often working better in digital interfaces than warmer, more erratic purples.
Is #28186c readable on white or black?
#28186c has a 14.60:1 contrast ratio on white and 1.43: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.