PreviewingGo to this paletteOpen in generator
Code
/* Harbor Night Blue — colorset.net */
:root {
--color-1: #000080;
--color-2: #191970;
--color-3: #483D8B;
--color-4: #4682B4;
--color-5: #6495ED;
--color-bg: #F2F7FF;
--color-surface: #E6EEFB;
--color-border: #CCD5E6;
--color-text: #0F2352;
--color-muted: #5F6B83;
--color-primary: #4473C8;
--color-on-primary: #FFFFFF;
--color-accent: #000080;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #95A7C6;
--color-muted: #76849C;
--color-primary: #6495ED;
--color-on-primary: #080F1F;
--color-accent: #2F5FD3;
--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 #6495ED | adjusted for contrast · from #191970 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #191970 | adjusted for contrast · from #6495ED |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #4682B4 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #4682B4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.12:1 | AAA pass 4.5:1 | |
| Text on surface | 13.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 16.01:1 | AAA pass 4.5:1 | |
| Primary on background | 4.31:1 | AA Large pass 3:1 | |
| Accent on background | 14.88:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 6.43:1 | AA pass 4.5:1 | |
| Label on accent | 5.68:1 | AA pass 4.5:1 | |
| Primary on background | 6.43:1 | AA 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 | #000080 (Text 1) | #191970 (Text 2) | #483D8B (Text 3) | #4682B4 (Text 4) | #6495ED (Text 5) |
|---|---|---|---|---|---|
| #000080 | Same color | 1.08— | 1.77— | 3.90AA Large | 5.39AA |
| #191970 | 1.08— | Same color | 1.64— | 3.61AA Large | 4.99AA |
| #483D8B | 1.77— | 1.64— | Same color | 2.21— | 3.05AA Large |
| #4682B4 | 3.90AA Large | 3.61AA Large | 2.21— | Same color | 1.38— |
| #6495ED | 5.39AA | 4.99AA | 3.05AA Large | 1.38— | Same color |
Shades
Shades and tints (50–950)
