#0F172A Hex Color
Professional deep blue for modern dark modes

#0f172a is a dark, inky blue that functions as a professional alternative to pure black. This hex code provides a solid base for modern dark mode UI layouts where eye strain is a concern. Because white text maintains high legibility against this hue, designers often use it to create an authoritative look for fintech or security-focused digital products.
Questions about #0f172a
What is #0f172a in RGB, HSL and CMYK?
In RGB, #0f172a is rgb(15, 23, 42), in HSL hsl(222, 47%, 11%) and in CMYK 64%, 45%, 0%, 84%.
Is #0f172a a better choice for UI backgrounds than pure black?
#0f172a is generally preferred for digital interfaces because it reduces eye strain compared to pitch black backgrounds. It provides sufficient contrast for white text while maintaining a softer, more premium aesthetic that prevents the vibration effect often seen with deep black pixels.
What colors pair well with #0f172a for a high-end look?
Is #0f172a readable on white or black?
#0f172a has a 17.85:1 contrast ratio on white and 1.17: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.