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

An inky, desaturated blue, #172040 functions as a serious and stable dark neutral. Because it sits so close to black, this hex code works best as a moody background for professional or technical interfaces. White text displays with excellent clarity against its matte surface. Pair this shade with soft creams or warm grays to avoid the harshness often found in pure black and white combinations.
Questions about #172040
What is #172040 in RGB, HSL and CMYK?
In RGB, #172040 is rgb(23, 32, 64), in HSL hsl(227, 47%, 17%) and in CMYK 64%, 50%, 0%, 75%. Browse more shades of blue with names and hex codes.
How can #172040 be used effectively in interface design?
#172040 functions best as a background color for professional software, dark-mode websites, or technical dashboards where black feels too harsh. Its slight blue undertone softens the visual weight, allowing white or light gray text to remain highly readable without causing eye strain.
Which accent colors work well with #172040?
Pair #172040 with soft cream or warm gray to balance its moody, desaturated nature. For a sophisticated pop of color, incorporate muted terracotta or dusty gold accents to create visual interest against the otherwise stable, inky backdrop.
Is #172040 readable on white or black?
#172040 has a 15.94:1 contrast ratio on white and 1.31: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.