PreviewingGo to this paletteOpen in generator
Code
/* Navy Night — colorset.net */
:root {
--color-1: #000D1A;
--color-2: #001A33;
--color-3: #00264D;
--color-4: #003366;
--color-5: #004080;
--color-bg: #F1F7FF;
--color-surface: #E5EFFB;
--color-border: #CAD6E6;
--color-text: #000D1A;
--color-muted: #516677;
--color-primary: #004080;
--color-on-primary: #FFFFFF;
--color-accent: #001A33;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000D1A;
--color-surface: #051725;
--color-border: #172C3C;
--color-text: #8FA6C3;
--color-muted: #708298;
--color-primary: #2E66A9;
--color-on-primary: #FFFFFF;
--color-accent: #526778;
--color-on-accent: #FFFFFF;
}
}
Color values
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | adjusted for contrast · from #004080 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #004080 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #004080 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #004080 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.17:1 | AAA pass 4.5:1 | |
| Text on surface | 16.85:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.54:1 | AA pass 4.5:1 | |
| Label on primary | 10.27:1 | AAA pass 4.5:1 | |
| Label on accent | 17.56:1 | AAA pass 4.5:1 | |
| Primary on background | 9.53:1 | AAA pass 3:1 | |
| Accent on background | 16.30:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.85:1 | AA pass 4.5:1 | |
| Label on accent | 5.88:1 | AA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 3.33:1 | AA Large pass 3:1 |
Every color on every color
Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.
| Background / Text | #000D1A (Text 1) | #001A33 (Text 2) | #00264D (Text 3) | #003366 (Text 4) | #004080 (Text 5) |
|---|---|---|---|---|---|
| #000D1A | Same color | 1.11— | 1.29— | 1.55— | 1.91— |
| #001A33 | 1.11— | Same color | 1.16— | 1.39— | 1.71— |
| #00264D | 1.29— | 1.16— | Same color | 1.20— | 1.48— |
| #003366 | 1.55— | 1.39— | 1.20— | Same color | 1.23— |
| #004080 | 1.91— | 1.71— | 1.48— | 1.23— | Same color |
Shades
Shades and tints (50–950)
