PreviewingGo to this paletteOpen in generator
Code
/* Night Blue — colorset.net */
:root {
--color-1: #000080;
--color-2: #191970;
--color-3: #32327A;
--color-4: #4B4B84;
--color-5: #64648E;
--color-bg: #F5F6FF;
--color-surface: #EBECFB;
--color-border: #D2D3E5;
--color-text: #0F2352;
--color-muted: #5F6B83;
--color-primary: #000080;
--color-on-primary: #FFFFFF;
--color-accent: #64648E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #A0A1C4;
--color-muted: #7F809B;
--color-primary: #2F5FD3;
--color-on-primary: #FFFFFF;
--color-accent: #64648E;
--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 #64648E | adjusted for contrast · from #191970 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #191970 | adjusted for contrast · from #64648E |
| Muted text | derived | derived |
| Primary | from palette · color 1 | adjusted for contrast · from #64648E |
| On primary | derived | derived |
| Accent | from palette · color 5 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.11:1 | AAA pass 4.5:1 | |
| Text on surface | 12.96:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 16.01:1 | AAA pass 4.5:1 | |
| Label on accent | 5.59:1 | AA pass 4.5:1 | |
| Primary on background | 14.87:1 | AAA pass 3:1 | |
| Accent on background | 5.19:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.64:1 | AAA pass 4.5:1 | |
| Text on surface | 7.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.68:1 | AA pass 4.5:1 | |
| Label on accent | 5.59:1 | AA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 3.42: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) | #191970 (Text 2) | #32327A (Text 3) | #4B4B84 (Text 4) | #64648E (Text 5) |
|---|---|---|---|---|---|
| #000080 | Same color | 1.08— | 1.43— | 2.01— | 2.86— |
| #191970 | 1.08— | Same color | 1.32— | 1.87— | 2.66— |
| #32327A | 1.43— | 1.32— | Same color | 1.41— | 2.01— |
| #4B4B84 | 2.01— | 1.87— | 1.41— | Same color | 1.42— |
| #64648E | 2.86— | 2.66— | 2.01— | 1.42— | Same color |
Shades
Shades and tints (50–950)
