PreviewingGo to this paletteOpen in generator
Code
/* Harbor Haze — colorset.net */
:root {
--color-1: #4682B4;
--color-2: #5F9EA0;
--color-3: #778899;
--color-4: #B0C4DE;
--color-5: #E6E6FA;
--color-bg: #E6E6FA;
--color-surface: #EEEEFA;
--color-border: #CDCDE4;
--color-text: #164D77;
--color-muted: #556B7E;
--color-primary: #3D79AA;
--color-on-primary: #FFFFFF;
--color-accent: #508F91;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #03111E;
--color-surface: #0B1B29;
--color-border: #1C3041;
--color-text: #E6E6FA;
--color-muted: #828294;
--color-primary: #3D79AA;
--color-on-primary: #FFFFFF;
--color-accent: #5F9EA0;
--color-on-accent: #03111E;
}
}
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 | from palette · color 5 | adjusted for contrast · from #4682B4 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4682B4 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #4682B4 | adjusted for contrast · from #4682B4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #5F9EA0 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.22:1 | AAA pass 4.5:1 | |
| Text on surface | 7.72:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.50:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 5.68:1 | AA pass 4.5:1 | |
| Primary on background | 3.78:1 | AA Large pass 3:1 | |
| Accent on background | 3.00:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.47:1 | AAA pass 4.5:1 | |
| Text on surface | 14.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 6.24:1 | AA pass 4.5:1 | |
| Primary on background | 4.09:1 | AA Large pass 3:1 | |
| Accent on background | 6.24:1 | AA 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 | #4682B4 (Text 1) | #5F9EA0 (Text 2) | #778899 (Text 3) | #B0C4DE (Text 4) | #E6E6FA (Text 5) |
|---|---|---|---|---|---|
| #4682B4 | Same color | 1.35— | 1.13— | 2.31— | 3.34AA Large |
| #5F9EA0 | 1.35— | Same color | 1.19— | 1.71— | 2.48— |
| #778899 | 1.13— | 1.19— | Same color | 2.05— | 2.96— |
| #B0C4DE | 2.31— | 1.71— | 2.05— | Same color | 1.45— |
| #E6E6FA | 3.34AA Large | 2.48— | 2.96— | 1.45— | Same color |
Shades
Shades and tints (50–950)
