PreviewingGo to this paletteOpen in generator
Code
/* Navy Harbor — colorset.net */
:root {
--color-1: #003366;
--color-2: #004080;
--color-3: #0D5299;
--color-4: #1A64B3;
--color-5: #2776CC;
--color-bg: #F1F7FF;
--color-surface: #E5EFFB;
--color-border: #CAD6E5;
--color-text: #0B3460;
--color-muted: #5B6D82;
--color-primary: #2776CC;
--color-on-primary: #FFFFFF;
--color-accent: #004080;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #05101E;
--color-surface: #0E1A29;
--color-border: #1F2F42;
--color-text: #90A8C5;
--color-muted: #73859C;
--color-primary: #2776CC;
--color-on-primary: #FFFFFF;
--color-accent: #3A69A0;
--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 #2776CC | adjusted for contrast · from #003366 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #003366 | adjusted for contrast · from #2776CC |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #1A64B3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.64:1 | AAA pass 4.5:1 | |
| Text on surface | 10.79:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 10.27:1 | AAA pass 4.5:1 | |
| Primary on background | 4.28:1 | AA Large pass 3:1 | |
| Accent on background | 9.53:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.82:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 5.66:1 | AA pass 4.5:1 | |
| Primary on background | 4.14:1 | AA Large pass 3:1 | |
| Accent on background | 3.37: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 | #003366 (Text 1) | #004080 (Text 2) | #0D5299 (Text 3) | #1A64B3 (Text 4) | #2776CC (Text 5) |
|---|---|---|---|---|---|
| #003366 | Same color | 1.23— | 1.61— | 2.11— | 2.73— |
| #004080 | 1.23— | Same color | 1.31— | 1.72— | 2.22— |
| #0D5299 | 1.61— | 1.31— | Same color | 1.31— | 1.70— |
| #1A64B3 | 2.11— | 1.72— | 1.31— | Same color | 1.29— |
| #2776CC | 2.73— | 2.22— | 1.70— | 1.29— | Same color |
Shades
Shades and tints (50–950)
