#1F1A28 Hex Color

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

Hex color #1f1a28 graphic
This inky, desaturated violet borders on black. Because #1f1a28 is so dim and moody, it functions best as a base for dark-mode interfaces or high-end branding. White text remains crisp and legible against this dark background, offering excellent accessibility. When plain black feels too aggressive, reach for this hex code to establish serious, structured depth in your designs.

Questions about #1f1a28

What is #1f1a28 in RGB, HSL and CMYK?
In RGB, #1f1a28 is rgb(31, 26, 40), in HSL hsl(261, 21%, 13%) and in CMYK 22%, 35%, 0%, 84%.
When should I use #1f1a28 instead of pure black?
Choose #1f1a28 when you want to establish a serious, high-end aesthetic without the harshness of true black. It provides a more organic, structured depth that feels less aggressive on the eyes while maintaining excellent readability for white text.
What colors pair well with #1f1a28 in a palette?
This color pairs beautifully with soft, desaturated accents to maintain its moody character. Try combining it with slate gray for a monochromatic look or a muted gold to introduce a subtle, sophisticated warmth that pops against the dark base.
Is #1f1a28 readable on white or black?
#1f1a28 has a 16.98:1 contrast ratio on white and 1.23: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.