#051021 Hex Color

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

Hex color #051021 graphic
This ashy, near-black blue serves as a modern alternative to pure black for UI backgrounds. Because #051021 provides exceptional contrast with white text, it maintains high readability in dark mode interfaces. Avoid using this tone for fine lines or small text where its depth might muddy, as it performs best in large, expansive areas. The hex code for this somber blue is #051021.

Questions about #051021

What is #051021 in RGB, HSL and CMYK?
In RGB, #051021 is rgb(5, 16, 33), in HSL hsl(216, 74%, 7%) and in CMYK 85%, 52%, 0%, 87%.
Is #051021 suitable for text in a dark mode design?
#051021 is primarily recommended for background surfaces rather than small text because of its extreme depth. While it offers excellent contrast against white, fine lines or small fonts may lose their crispness and readability at this low luminosity level.
What colors pair well with #051021 to add warmth?
To offset the coolness of #051021, consider pairing it with a warm sand or a soft terracotta for balance. These earth-toned accents bring life to the void-like darkness, preventing the interface from feeling too sterile or clinical.
Is #051021 readable on white or black?
#051021 has a 19.04: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.