#0B1F42 Hex Color
A deeply grounded and near-black blue

This dark, unsaturated blue sits on the edge of black, providing a serious and grounded alternative to standard navy. Because #0b1f42 is so low in chroma, it works best as a primary background for UI layouts or authoritative branding. White text stands out sharply against this shade, offering excellent readability. Pair it with soft cream accents to prevent the overall design from appearing too cold or harsh.
Questions about #0b1f42
What is #0b1f42 in RGB, HSL and CMYK?
In RGB, #0b1f42 is rgb(11, 31, 66), in HSL hsl(218, 71%, 15%) and in CMYK 83%, 53%, 0%, 74%. Browse more shades of blue with names and hex codes.
What colors pair best with #0b1f42?
#0b1f42 works best with high-contrast, lighter neutrals to maintain readability. Pairing this deep blue with a warm cream or soft off-white prevents the design from feeling too cold or severe while ensuring text remains legible against the dark backdrop.
Is #0b1f42 suitable for large blocks of text?
Using #0b1f42 as a background is ideal for UI elements, but avoid using it as a primary text color. Because it sits so close to black, it provides excellent contrast for white or light-colored typography, creating a clean, modern aesthetic for headers.
Is #0b1f42 readable on white or black?
#0b1f42 has a 16.29:1 contrast ratio on white and 1.28: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.