High contrast · Dark theme
White on Navy
White text on very dark navy with deeper blue links and a yellow accent.
Preview
Field notes · 4 minute read
How tide pools keep their colour
At low tide the rock holds small pools of sea water. Each one is a link you have not opened, and beside it one you already have. A value such as depth: 12cm sits in a code chip.
A good theme keeps a quote readable without making it shout.
| Pool | Depth | Seen |
|---|---|---|
| North ledge | 12 cm | Anemone, limpets |
| Split rock | 30 cm | Shore crab |
A sample page in White on Navy's ten colours. Compare it live with the other themes.
Contrast in plain words
Body text is #ffffff on #02071d, a
contrast of 20.0:1. That passes the stricter WCAG AAA level for body text (7:1).
Links come out at 6.5:1 and muted text at 8.2:1 against the background. The perceptual lightness gap between text and background is 0.86 on a scale from 0 to 1.
Use White on Navy on the sites you open.
Free in Dark Mode Alpha, along with every other theme. Give it to one site or to all of them.
Palette
| Colour | Hex | Used for | Copy |
|---|---|---|---|
| Background | #02071d | The page behind everything | |
| Surface | #09132c | Cards, panels and raised areas | |
| Text | #ffffff | Body text and headings | |
| Muted text | #9da6b9 | Captions and secondary text | |
| Link | #479bd0 | Links you have not opened | |
| Visited link | #baa3e8 | Links you have opened | |
| Accent | #f7e04f | Buttons and highlights | |
| Border | #283452 | Lines and outlines | |
| Selection | #054d72 | Behind text you select | |
| Scrollbar | #1e2a46 | The scrollbar thumb |
CSS variables
/* White on Navy — Dark Mode Alpha */
:root {
color-scheme: dark;
--dma-background: #02071d;
--dma-surface: #09132c;
--dma-text: #ffffff;
--dma-muted: #9da6b9;
--dma-link: #479bd0;
--dma-visited: #baa3e8;
--dma-accent: #f7e04f;
--dma-border: #283452;
--dma-selection: #054d72;
--dma-scrollbar: #1e2a46;
}
Paste the block into your own stylesheet to use these colours, for example
background: var(--dma-background).
Contrast figures
| Pair | Ratio | WCAG |
|---|---|---|
| Body text text on background | 20.0:1 | AAA |
| Text on panels text on surface | 18.4:1 | AAA |
| Muted text muted on background | 8.2:1 | AAA |
| Links link on background | 6.5:1 | AA |
| Visited links visited on background | 9.0:1 | AAA |
| Accent accent on background | 15.0:1 | AAA |
AAA means at least 7:1, AA at least 4.5:1, and "AA large" at least 3:1, which is enough for large text and interface parts but not for body text.
Family and collections
White on Navy belongs to the High contrast family: the brightest text on the darkest backgrounds, with strongly marked links.
- Maximum contrast The strongest text contrast in the catalogue: white or near-white on black or near-black, with clearly marked links and controls.
- Colour-blind safe Links differ from body text in lightness, not only in hue, and stay distinguishable in simulations of the three main types of colour-vision deficiency.
Credit
White on Navy is an original palette by Carolinas Dev. Palettes that build on open-source work are listed on the credits page.
Similar themes
The closest themes to White on Navy by background, text and link colour.