PreviewingGo to this paletteOpen in generator
Code
/* Harbor Dusk — colorset.net */
:root {
--color-1: #333D51;
--color-2: #495A75;
--color-3: #5E779D;
--color-4: #7B94C1;
--color-5: #A0B5D8;
--color-bg: #F2F7FF;
--color-surface: #E7EEF9;
--color-border: #CDD5E4;
--color-text: #333D51;
--color-muted: #606B81;
--color-primary: #5E779D;
--color-on-primary: #FFFFFF;
--color-accent: #768AAB;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C0F16;
--color-surface: #161921;
--color-border: #292E38;
--color-text: #A2B5D5;
--color-muted: #75839B;
--color-primary: #5E779D;
--color-on-primary: #FFFFFF;
--color-accent: #5B667C;
--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 #A0B5D8 | adjusted for contrast · from #333D51 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #A0B5D8 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7B94C1 | adjusted for contrast · from #495A75 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.13:1 | AAA pass 4.5:1 | |
| Text on surface | 9.34:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 5.99:1 | AA pass 4.5:1 | |
| Primary on background | 4.24:1 | AA Large pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.23:1 | AAA pass 4.5:1 | |
| Text on surface | 8.46:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 5.77:1 | AA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 3.32: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 | #333D51 (Text 1) | #495A75 (Text 2) | #5E779D (Text 3) | #7B94C1 (Text 4) | #A0B5D8 (Text 5) |
|---|---|---|---|---|---|
| #333D51 | Same color | 1.56— | 2.39— | 3.55AA Large | 5.24AA |
| #495A75 | 1.56— | Same color | 1.53— | 2.28— | 3.36AA Large |
| #5E779D | 2.39— | 1.53— | Same color | 1.49— | 2.19— |
| #7B94C1 | 3.55AA Large | 2.28— | 1.49— | Same color | 1.47— |
| #A0B5D8 | 5.24AA | 3.36AA Large | 2.19— | 1.47— | Same color |
Shades
Shades and tints (50–950)
