Midnight Navy color code: #0B132B
Very dark and slightly cool, this shade behaves almost like black while retaining a blue signature.
Midnight Navy · rgb(11, 19, 43)
Every format for Midnight Navy
- HEX
- #0B132B
- RGB
- rgb(11, 19, 43)
- HSL
- hsl(225, 59%, 11%)
- HSV
- 225°, 74%, 17%
- CMYK
- 74%, 56%, 0%, 83%
- Lightness
- 11% · dark
Hue sits at 225°, which makes Midnight Navy a true blue navy, with 59% saturation. In the Midnight Navy family it reads as a dark option.
Text contrast on Midnight Navy
Contrast ratios are calculated using the WCAG 2.1 relative luminance formula. Normal body text needs 4.5:1 and large text needs 3:1 to pass AA.
White text on Midnight Navy
The quick brown fox jumps over the lazy dog.
18.38:1 — AAA for normal textBlack text on Midnight Navy
The quick brown fox jumps over the lazy dog.
1.14:1 — below AA, decorative use onlyMidnight Navy text on white
The quick brown fox jumps over the lazy dog.
18.38:1 — AAA for normal textAccessibility notes
- Pair Midnight Navy with white text for the strongest reading experience: that combination gives 18.38:1.
- Used as a text colour on white, it clears the 3:1 bar for large headings.
- Never rely on Midnight Navy alone to communicate state. Add an icon, label or underline so the meaning survives for colour-blind users and in greyscale printing.
- When placing text over a photograph tinted with Midnight Navy, add a solid overlay first. Contrast measured against a flat colour does not hold over varying imagery.
Using Midnight Navy in CSS and HTML
CSS example
:root {
--midnight-navy: #0B132B;
}
.panel {
background-color: var(--midnight-navy);
color: #FFFFFF;
border: 1px solid #0B132B;
}HTML example
<div style="background-color: #0B132B; color: #FFFFFF; padding: 1rem;">
Midnight Navy #0B132B
</div>Common uses
- Page and section backgrounds in dark interfaces, where it holds white text cleanly.
- Midnight Navy palettes for brand systems that need a dependable cool anchor.
- Print work where a deep blue is preferred to black, using the CMYK build 74%, 56%, 0%, 83%.
- Data visualisation, as one step in a lightness-based navy scale.
Design recommendations
- Build lighter and darker variants by changing only the lightness in
hsl(225, 59%, 11%). Keeping hue fixed is what makes a scale look intentional. - Give Midnight Navy at least one warm counterweight. A cool palette with no warm accent tends to read as cold rather than calm.
- Saturation is moderate, which makes this shade forgiving across large areas and long reading sessions.
Complementary and matching colors
Each of these is derived from the hue, saturation and lightness of Midnight Navy. Click a swatch to copy it.
Similar navy shades
Continue exploring
FAQs about Midnight Navy
What is the Midnight Navy color code?
The Midnight Navy color code is #0B132B in HEX, rgb(11, 19, 43) in RGB and hsl(225, 59%, 11%) in HSL.
What is the RGB value of Midnight Navy?
Midnight Navy is rgb(11, 19, 43), meaning 11 units of red, 19 of green and 43 of blue on the 0 to 255 scale.
What is the CMYK value of Midnight Navy?
In CMYK, Midnight Navy converts to approximately 74%, 56%, 0%, 83%. Printed output will look slightly less saturated than the screen preview because CMYK covers a narrower gamut.
Does white text work on Midnight Navy?
White text on Midnight Navy gives a contrast ratio of 18.38:1, which is AAA for normal text.
Does black text work on Midnight Navy?
Black text on Midnight Navy gives a contrast ratio of 1.14:1, which is below AA, decorative use only.
Which colors go with Midnight Navy?
Its direct complement is #8E7425, and the warm accent #A5A518 works well for calls to action. For a quieter scheme, pair it with the analogous blues listed above.
Is Midnight Navy a light or dark navy?
At 11% lightness, Midnight Navy is classed as a dark navy in this collection.