PreviewingGo to this paletteOpen in generator
Code
/* Navy Dark — colorset.net */
:root {
--color-1: #000033;
--color-2: #001F3F;
--color-3: #002D62;
--color-4: #003D82;
--color-5: #004D99;
--color-bg: #F2F7FF;
--color-surface: #E5EEFB;
--color-border: #CAD6E6;
--color-text: #00022F;
--color-muted: #566279;
--color-primary: #004D99;
--color-on-primary: #FFFFFF;
--color-accent: #001F3F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #8FA6C3;
--color-muted: #72849A;
--color-primary: #2568B6;
--color-on-primary: #FFFFFF;
--color-accent: #47688D;
--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 #004D99 | adjusted for contrast · from #000033 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #000033 | adjusted for contrast · from #004D99 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #004D99 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #004D99 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.60:1 | AAA pass 4.5:1 | |
| Text on surface | 17.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.71:1 | AA pass 4.5:1 | |
| Label on primary | 8.33:1 | AAA pass 4.5:1 | |
| Label on accent | 16.56:1 | AAA pass 4.5:1 | |
| Primary on background | 7.74:1 | AAA pass 3:1 | |
| Accent on background | 15.40:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.66:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 3.40:1 | AA Large pass 3:1 | |
| Accent on background | 3.31: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 | #000033 (Text 1) | #001F3F (Text 2) | #002D62 (Text 3) | #003D82 (Text 4) | #004D99 (Text 5) |
|---|---|---|---|---|---|
| #000033 | Same color | 1.21— | 1.48— | 1.90— | 2.41— |
| #001F3F | 1.21— | Same color | 1.22— | 1.57— | 1.99— |
| #002D62 | 1.48— | 1.22— | Same color | 1.28— | 1.62— |
| #003D82 | 1.90— | 1.57— | 1.28— | Same color | 1.27— |
| #004D99 | 2.41— | 1.99— | 1.62— | 1.27— | Same color |
Shades
Shades and tints (50–950)
