Clear heading Body text with a link in it. Button Muted note
Dim Ledger
Developer classics Text contrast AAA 10.2:1
New: 177 themes, each one tested for readable contrast. Browse them
Developer classics · Dark theme
Deep petrol blue-green with grey-cyan text, blue links and a cyan accent.
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 Petrol Blue's ten colours. Compare it live with the other themes.
Body text is #c6d8da on #002b36, a
contrast of 10.2:1. That passes the stricter WCAG AAA level for body text (7:1).
Links come out at 5.3:1 and muted text at 4.8:1 against the background. The perceptual lightness gap between text and background is 0.60 on a scale from 0 to 1.
Use Petrol Blue 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.
| Colour | Hex | Used for | Copy |
|---|---|---|---|
| Background | #002b36 | The page behind everything | |
| Surface | #073642 | Cards, panels and raised areas | |
| Text | #c6d8da | Body text and headings | |
| Muted text | #7e959d | Captions and secondary text | |
| Link | #40a0e9 | Links you have not opened | |
| Visited link | #9ca4fb | Links you have opened | |
| Accent | #2aa198 | Buttons and highlights | |
| Border | #2e4f58 | Lines and outlines | |
| Selection | #105271 | Behind text you select | |
| Scrollbar | #244751 | The scrollbar thumb |
/* Petrol Blue — Dark Mode Alpha */
:root {
color-scheme: dark;
--dma-background: #002b36;
--dma-surface: #073642;
--dma-text: #c6d8da;
--dma-muted: #7e959d;
--dma-link: #40a0e9;
--dma-visited: #9ca4fb;
--dma-accent: #2aa198;
--dma-border: #2e4f58;
--dma-selection: #105271;
--dma-scrollbar: #244751;
}
Paste the block into your own stylesheet to use these colours, for example
background: var(--dma-background).
| Pair | Ratio | WCAG |
|---|---|---|
| Body text text on background | 10.2:1 | AAA |
| Text on panels text on surface | 8.8:1 | AAA |
| Muted text muted on background | 4.8:1 | AA |
| Links link on background | 5.3:1 | AA |
| Visited links visited on background | 6.5:1 | AA |
| Accent accent on background | 4.8:1 | AA |
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.
Petrol Blue belongs to the Developer classics family: looks based on well-known open-source editor palettes, adjusted to meet our contrast rules.
The colours of Petrol Blue are inspired by the open-source palette Solarized Dark by Ethan Schoonover , published under the MIT licence. The name, the adjustments and the contrast checks are ours.
The closest themes to Petrol Blue by background, text and link colour.