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

Midnight Blue is a near-black shade that carries significant weight. As a dominant background color, #020035 provides an authoritative, moody atmosphere perfect for tech or law enforcement branding. This hex code offers excellent contrast with white, ensuring small text remains readable. Use it carefully, as the darkness can swallow fine details that would stand out on lighter, brighter backgrounds.
Questions about Midnight Blue
What is the hex code for Midnight Blue?
Midnight Blue is #020035. In RGB that is rgb(2, 0, 53), in HSL hsl(242, 100%, 10%) and in CMYK 96%, 100%, 0%, 79%. Browse more shades of black with names and hex codes.
How should I use #020035 in web design?
#020035 works best as a primary background or a dark branding element where you need high contrast. Because it is so dark, pair it with crisp whites or very bright accent colors to ensure your text and UI elements remain legible.
What colors pair well with Midnight Blue #020035?
This deep shade creates a balanced look when paired with gold for a luxury feel, or bright white for modern clarity. Avoid other dark tones, as they will blend into the background and reduce your overall visual accessibility.
Is Midnight Blue readable on white or black?
Midnight Blue has a 19.92:1 contrast ratio on white and 1.05: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.