PreviewingGo to this paletteOpen in generator
Code
/* Navy Twilight — colorset.net */
:root {
--color-1: #001122;
--color-2: #002244;
--color-3: #003366;
--color-4: #004488;
--color-5: #0055AA;
--color-bg: #F2F7FF;
--color-surface: #E5EEFB;
--color-border: #CAD6E6;
--color-text: #001122;
--color-muted: #53697C;
--color-primary: #0055AA;
--color-on-primary: #FFFFFF;
--color-accent: #002244;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #001122;
--color-surface: #061C2D;
--color-border: #1D3041;
--color-text: #93A9C7;
--color-muted: #75869D;
--color-primary: #1D67BE;
--color-on-primary: #FFFFFF;
--color-accent: #526A7F;
--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 #0055AA | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #0055AA |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #0055AA |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0055AA |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.70:1 | AAA pass 4.5:1 | |
| Text on surface | 16.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 7.29:1 | AAA pass 4.5:1 | |
| Label on accent | 16.00:1 | AAA pass 4.5:1 | |
| Primary on background | 6.78:1 | AA pass 3:1 | |
| Accent on background | 14.88:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.92:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 5.63:1 | AA pass 4.5:1 | |
| Primary on background | 3.39:1 | AA Large pass 3:1 | |
| Accent on background | 3.38: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 | #001122 (Text 1) | #002244 (Text 2) | #003366 (Text 3) | #004488 (Text 4) | #0055AA (Text 5) |
|---|---|---|---|---|---|
| #001122 | Same color | 1.19— | 1.51— | 1.98— | 2.61— |
| #002244 | 1.19— | Same color | 1.27— | 1.66— | 2.19— |
| #003366 | 1.51— | 1.27— | Same color | 1.31— | 1.73— |
| #004488 | 1.98— | 1.66— | 1.31— | Same color | 1.32— |
| #0055AA | 2.61— | 2.19— | 1.73— | 1.32— | Same color |
Shades
Shades and tints (50–950)
