PreviewingGo to this paletteOpen in generator
Code
/* Midnight Navy — colorset.net */
:root {
--color-1: #000033;
--color-2: #000D4D;
--color-3: #001A66;
--color-4: #002680;
--color-5: #003399;
--color-bg: #F2F7FF;
--color-surface: #E6EEFB;
--color-border: #CCD5E6;
--color-text: #00022F;
--color-muted: #566279;
--color-primary: #003399;
--color-on-primary: #FFFFFF;
--color-accent: #000D4D;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #94A6C5;
--color-muted: #76849C;
--color-primary: #2D62CB;
--color-on-primary: #FFFFFF;
--color-accent: #4A66A1;
--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 #003399 | adjusted for contrast · from #000033 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #000033 | adjusted for contrast · from #003399 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #003399 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #003399 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.60:1 | AAA pass 4.5:1 | |
| Text on surface | 17.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.71:1 | AA pass 4.5:1 | |
| Label on primary | 10.86:1 | AAA pass 4.5:1 | |
| Label on accent | 18.03:1 | AAA pass 4.5:1 | |
| Primary on background | 10.10:1 | AAA pass 3:1 | |
| Accent on background | 16.76:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.76:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.67:1 | AA pass 4.5:1 | |
| Primary on background | 3.39: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 | #000033 (Text 1) | #000D4D (Text 2) | #001A66 (Text 3) | #002680 (Text 4) | #003399 (Text 5) |
|---|---|---|---|---|---|
| #000033 | Same color | 1.11— | 1.28— | 1.52— | 1.85— |
| #000D4D | 1.11— | Same color | 1.15— | 1.36— | 1.66— |
| #001A66 | 1.28— | 1.15— | Same color | 1.19— | 1.44— |
| #002680 | 1.52— | 1.36— | 1.19— | Same color | 1.22— |
| #003399 | 1.85— | 1.66— | 1.44— | 1.22— | Same color |
Shades
Shades and tints (50–950)
