PreviewingGo to this paletteOpen in generator
Code
/* Naval Ink — colorset.net */
:root {
--color-1: #000080;
--color-2: #001F3F;
--color-3: #003366;
--color-4: #004080;
--color-5: #1F4788;
--color-bg: #F2F7FF;
--color-surface: #E6EEFB;
--color-border: #CBD6E6;
--color-text: #001F3F;
--color-muted: #5B6D82;
--color-primary: #000080;
--color-on-primary: #FFFFFF;
--color-accent: #1F4788;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #06101B;
--color-surface: #101A26;
--color-border: #212F3E;
--color-text: #95A8C7;
--color-muted: #76859D;
--color-primary: #2F5FD3;
--color-on-primary: #FFFFFF;
--color-accent: #3D67AB;
--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 #1F4788 | adjusted for contrast · from #001F3F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 2 | adjusted for contrast · from #1F4788 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | adjusted for contrast · from #1F4788 |
| On primary | derived | derived |
| Accent | from palette · color 5 | adjusted for contrast · from #1F4788 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.40:1 | AAA pass 4.5:1 | |
| Text on surface | 14.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 16.01:1 | AAA pass 4.5:1 | |
| Label on accent | 9.07:1 | AAA pass 4.5:1 | |
| Primary on background | 14.88:1 | AAA pass 3:1 | |
| Accent on background | 8.43:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.93:1 | AAA pass 4.5:1 | |
| Text on surface | 7.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 5.68:1 | AA pass 4.5:1 | |
| Label on accent | 5.64:1 | AA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 3.39: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 | #000080 (Text 1) | #001F3F (Text 2) | #003366 (Text 3) | #004080 (Text 4) | #1F4788 (Text 5) |
|---|---|---|---|---|---|
| #000080 | Same color | 1.03— | 1.27— | 1.56— | 1.76— |
| #001F3F | 1.03— | Same color | 1.31— | 1.61— | 1.83— |
| #003366 | 1.27— | 1.31— | Same color | 1.23— | 1.39— |
| #004080 | 1.56— | 1.61— | 1.23— | Same color | 1.13— |
| #1F4788 | 1.76— | 1.83— | 1.39— | 1.13— | Same color |
Shades
Shades and tints (50–950)
