Using Naval Night (#011C39) in Interface Design: Scale, Buttons and Dark Mode
A working design system from Naval Night #011C39: a 50 to 950 scale, button states with contrast, a dark-mode version, an accessible link color and the CSS to paste in.
Naval Night (#011C39) is a very dark, muted blue. As an interface color it has a clear personality: it is dark enough to carry white labels, which makes it a natural button and header color. This guide shows how to build a working interface from it: a full scale, every button state, a dark-mode version, a link color that passes, and the CSS to paste in.
A scale built from Naval Night
A single color is not enough for an interface. You need lighter steps for surfaces and borders and darker steps for text and hover states. This 50 to 950 scale keeps the hue and saturation of Naval Night and moves only the lightness. The step closest to Naval Night keeps its exact value.
| Step | Hex | Contrast on white | Best text on it |
|---|---|---|---|
| 50 | #F3F7FC | 1.07:1 | #111111 |
| 100 | #E4ECF6 | 1.19:1 | #111111 |
| 200 | #CDDDEE | 1.38:1 | #111111 |
| 300 | #ACC3DE | 1.80:1 | #111111 |
| 400 | #87A4C6 | 2.57:1 | #111111 |
| 500 | #6A89AD | 3.62:1 | #111111 |
| 600 | #547192 | 5.05:1 | #FFFFFF |
| 700 | #415A77 | 7.10:1 | #FFFFFF |
| 800 | #30445B | 9.98:1 | #FFFFFF |
| 900 | #223244 | 13.06:1 | #FFFFFF |
| 950 | #011C39 | 17.12:1 | #FFFFFF |
Button states
Interactive elements need to look different when you hover, press and disable them, and each state still has to be readable. These values are made from Naval Night itself, so the button stays in family.
| State | Background | Label | Label contrast |
|---|---|---|---|
| Default | #011C39 | #FFFFFF | 17.12:1 |
| Hover | #011A35 | #FFFFFF | 17.49:1 |
| Pressed | #011832 | #FFFFFF | 17.82:1 |
| Disabled | #CECFD1 | #6B7280 | 3.10:1 |
Disabled controls are exempt from WCAG contrast rules, but they still need to be recognizable, so the label is kept dark enough to read. For keyboard focus, use an outline of Naval Night (#011C39), which reaches 3 to 1 against a white page, the minimum for interface parts.
Dark mode
On a near-black page (#0F1115), Naval Night reaches 1.10:1 (Fail). That is not enough for text, so lighten it. Bay View (#5F7FA2) is the closest lightness of the same hue that reaches 4.5 to 1.
Links and text
Naval Night on white reaches 17.12:1 (AAA), so it can be a link and heading color as it is. Links also need a second cue beyond color, such as an underline, because some readers cannot tell the link color from the surrounding text.
Surfaces and borders
Tints of Naval Night make quiet surfaces that feel connected to the brand without competing with it. Snow (#F8F8F8) works as a card or page tint, and Airy (#E5E5E6) as a border or divider.
The CSS
:root {
--brand: #011C39;
--brand-hover: #011A35;
--brand-active: #011832;
--on-brand: #FFFFFF;
--brand-surface: #F8F8F8;
--brand-border: #E5E5E6;
--brand-text: #011C39;
--focus-ring: #011C39;
}
@media (prefers-color-scheme: dark) {
:root {
--brand: #5F7FA2;
--brand-text: #5F7FA2;
}
}A short checklist
- Use Naval Night for the one action you most want people to take.
- Put #FFFFFF text on it and check that the ratio stays above 4.5 to 1.
- Use the scale for hover, pressed, border and surface colors rather than inventing new ones.
- Define a separate dark-mode value and test it on a dark page.
- Never use the color as the only signal: add an icon, a label or an underline.