PreviewingGo to this paletteOpen in generator
Code
/* Harbor Ledger — colorset.net */
:root {
--color-1: #F6F8FB;
--color-2: #1F6FEB;
--color-3: #19B38A;
--color-4: #7F94B1;
--color-5: #0E1B2C;
--color-bg: #F6F8FB;
--color-surface: #EDEFF2;
--color-border: #D2D6DC;
--color-text: #0E1B2C;
--color-muted: #5D6D82;
--color-primary: #1F6FEB;
--color-on-primary: #FFFFFF;
--color-accent: #008766;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E1B2C;
--color-surface: #182638;
--color-border: #2C3B4F;
--color-text: #F6F8FB;
--color-muted: #909295;
--color-primary: #1F6FEB;
--color-on-primary: #FFFFFF;
--color-accent: #19B38A;
--color-on-accent: #0E1B2C;
}
}
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 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #19B38A | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.29:1 | AAA pass 4.5:1 | |
| Text on surface | 15.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 4.36:1 | AA Large pass 3:1 | |
| Accent on background | 4.24:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.29:1 | AAA pass 4.5:1 | |
| Text on surface | 14.37:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.55:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 6.48:1 | AA pass 4.5:1 | |
| Primary on background | 3.74:1 | AA Large pass 3:1 | |
| Accent on background | 6.48: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 | #F6F8FB (Text 1) | #1F6FEB (Text 2) | #19B38A (Text 3) | #7F94B1 (Text 4) | #0E1B2C (Text 5) |
|---|---|---|---|---|---|
| #F6F8FB | Same color | 4.36AA Large | 2.51— | 2.91— | 16.29AAA |
| #1F6FEB | 4.36AA Large | Same color | 1.73— | 1.49— | 3.74AA Large |
| #19B38A | 2.51— | 1.73— | Same color | 1.16— | 6.48AA |
| #7F94B1 | 2.91— | 1.49— | 1.16— | Same color | 5.59AA |
| #0E1B2C | 16.29AAA | 3.74AA Large | 6.48AA | 5.59AA | Same color |
Shades
Shades and tints (50–950)
