PreviewingGo to this paletteOpen in generator
Code
/* Harbor Blue — colorset.net */
:root {
--color-1: #3B5F7B;
--color-2: #4E7A9E;
--color-3: #6195C1;
--color-4: #74B0E4;
--color-5: #99C5ED;
--color-bg: #F0F8FF;
--color-surface: #E3EFFB;
--color-border: #C8D7E5;
--color-text: #2D516C;
--color-muted: #566D80;
--color-primary: #4E7A9E;
--color-on-primary: #FFFFFF;
--color-accent: #638DB2;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #061119;
--color-surface: #0F1B24;
--color-border: #21303C;
--color-text: #A6C4DF;
--color-muted: #70869A;
--color-primary: #4E7A9E;
--color-on-primary: #FFFFFF;
--color-accent: #74B0E4;
--color-on-accent: #061119;
}
}
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 #99C5ED | adjusted for contrast · from #3B5F7B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #3B5F7B | adjusted for contrast · from #99C5ED |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #6195C1 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 5.98:1 | AA pass 4.5:1 | |
| Primary on background | 4.25:1 | AA Large pass 3:1 | |
| Accent on background | 3.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.51:1 | AAA pass 4.5:1 | |
| Text on surface | 9.63:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 8.23:1 | AAA pass 4.5:1 | |
| Primary on background | 4.18:1 | AA Large pass 3:1 | |
| Accent on background | 8.23:1 | AAA 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 | #3B5F7B (Text 1) | #4E7A9E (Text 2) | #6195C1 (Text 3) | #74B0E4 (Text 4) | #99C5ED (Text 5) |
|---|---|---|---|---|---|
| #3B5F7B | Same color | 1.48— | 2.12— | 2.92— | 3.72AA Large |
| #4E7A9E | 1.48— | Same color | 1.43— | 1.97— | 2.51— |
| #6195C1 | 2.12— | 1.43— | Same color | 1.38— | 1.76— |
| #74B0E4 | 2.92— | 1.97— | 1.38— | Same color | 1.27— |
| #99C5ED | 3.72AA Large | 2.51— | 1.76— | 1.27— | Same color |
Shades
Shades and tints (50–950)
