#051C38 Hex Color

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

Hex color #051c38 graphic
This midnight blue is extremely dark, offering a heavy, grounded alternative to traditional black. Because it carries such low saturation, #051c38 works best as a dominant base for corporate branding or moody UI backgrounds. It provides high contrast against white text, ensuring excellent readability. Pair this hex code with muted golds or creams to prevent the color from feeling too cold or severe.

Questions about #051c38

What is #051c38 in RGB, HSL and CMYK?
In RGB, #051c38 is rgb(5, 28, 56), in HSL hsl(213, 84%, 12%) and in CMYK 91%, 50%, 0%, 78%. Browse more shades of blue with names and hex codes.
Does #051c38 work better than black for UI backgrounds?
#051c38 is often superior to pure black because it provides a softer, more sophisticated aesthetic while maintaining the high contrast needed for white text. It reduces eye strain during long reading sessions and adds a touch of depth to minimalist layouts.
What colors pair well with #051c38?
This deep blue balances beautifully with muted metallics like champagne or soft gold, which prevent the overall design from appearing too cold. For a more professional corporate look, pairing it with clean off-white or neutral light gray ensures maximum readability and polish.
Is #051c38 readable on white or black?
#051c38 has a 17.07:1 contrast ratio on white and 1.22: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.