Cobalt Night color code: #123C7A
A deep cobalt-leaning navy that stays vivid at small sizes.
Cobalt Night · rgb(18, 60, 122)
Every format for Cobalt Night
- HEX
- #123C7A
- RGB
- rgb(18, 60, 122)
- HSL
- hsl(216, 74%, 27%)
- HSV
- 216°, 85%, 48%
- CMYK
- 85%, 51%, 0%, 52%
- Lightness
- 27% · dark
Hue sits at 216°, which makes Cobalt Night a slightly cool blue navy, with 74% saturation. In the Dark Navy family it reads as a dark option.
Text contrast on Cobalt Night
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 Cobalt Night
The quick brown fox jumps over the lazy dog.
10.75:1 — AAA for normal textBlack text on Cobalt Night
The quick brown fox jumps over the lazy dog.
1.95:1 — below AA, decorative use onlyCobalt Night text on white
The quick brown fox jumps over the lazy dog.
10.75:1 — AAA for normal textAccessibility notes
- Pair Cobalt Night with white text for the strongest reading experience: that combination gives 10.75:1.
- Used as a text colour on white, it clears the 3:1 bar for large headings.
- Never rely on Cobalt Night 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 Cobalt Night, add a solid overlay first. Contrast measured against a flat colour does not hold over varying imagery.
Using Cobalt Night in CSS and HTML
CSS example
:root {
--cobalt-night: #123C7A;
}
.panel {
background-color: var(--cobalt-night);
color: #FFFFFF;
border: 1px solid #123C7A;
}HTML example
<div style="background-color: #123C7A; color: #FFFFFF; padding: 1rem;">
Cobalt Night #123C7A
</div>Common uses
- Page and section backgrounds in dark interfaces, where it holds white text cleanly.
- Dark 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 85%, 51%, 0%, 52%.
- 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(216, 74%, 27%). Keeping hue fixed is what makes a scale look intentional. - Give Cobalt Night at least one warm counterweight. A cool palette with no warm accent tends to read as cold rather than calm.
- Saturation is high here, so use it in measured amounts. Large flat areas of a saturated navy can feel heavy on screen.
Complementary and matching colors
Each of these is derived from the hue, saturation and lightness of Cobalt Night. Click a swatch to copy it.
Similar navy shades
Continue exploring
FAQs about Cobalt Night
What is the Cobalt Night color code?
The Cobalt Night color code is #123C7A in HEX, rgb(18, 60, 122) in RGB and hsl(216, 74%, 27%) in HSL.
What is the RGB value of Cobalt Night?
Cobalt Night is rgb(18, 60, 122), meaning 18 units of red, 60 of green and 122 of blue on the 0 to 255 scale.
What is the CMYK value of Cobalt Night?
In CMYK, Cobalt Night converts to approximately 85%, 51%, 0%, 52%. Printed output will look slightly less saturated than the screen preview because CMYK covers a narrower gamut.
Does white text work on Cobalt Night?
White text on Cobalt Night gives a contrast ratio of 10.75:1, which is AAA for normal text.
Does black text work on Cobalt Night?
Black text on Cobalt Night gives a contrast ratio of 1.95:1, which is below AA, decorative use only.
Which colors go with Cobalt Night?
Its direct complement is #C8841E, and the warm accent #E1C62D works well for calls to action. For a quieter scheme, pair it with the analogous blues listed above.
Is Cobalt Night a light or dark navy?
At 27% lightness, Cobalt Night is classed as a dark navy in this collection.