PreviewingGo to this paletteOpen in generator
Code
/* Cool Blue — colorset.net */
:root {
--color-1: #FFFFFF;
--color-2: #87CEEB;
--color-3: #4682B4;
--color-4: #2F4F4F;
--color-5: #228B22;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #2F4F4F;
--color-muted: #567777;
--color-primary: #1D881E;
--color-on-primary: #FFFFFF;
--color-accent: #3D79AA;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #071111;
--color-surface: #111C1C;
--color-border: #223131;
--color-text: #FFFFFF;
--color-muted: #8F8F8F;
--color-primary: #1D881E;
--color-on-primary: #FFFFFF;
--color-accent: #3D79AA;
--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 | from palette · color 1 | adjusted for contrast · from #2F4F4F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 4 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #228B22 | adjusted for contrast · from #228B22 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4682B4 | adjusted for contrast · from #4682B4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.93:1 | AAA pass 4.5:1 | |
| Text on surface | 8.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.88:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 4.65:1 | AA pass 4.5:1 | |
| Primary on background | 4.57:1 | AA pass 3:1 | |
| Accent on background | 4.65:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.14:1 | AAA pass 4.5:1 | |
| Text on surface | 17.40:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.92:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 4.65:1 | AA pass 4.5:1 | |
| Primary on background | 4.19:1 | AA Large pass 3:1 | |
| Accent on background | 4.11: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 | #FFFFFF (Text 1) | #87CEEB (Text 2) | #4682B4 (Text 3) | #2F4F4F (Text 4) | #228B22 (Text 5) |
|---|---|---|---|---|---|
| #FFFFFF | Same color | 1.74— | 4.11AA Large | 8.93AAA | 4.39AA Large |
| #87CEEB | 1.74— | Same color | 2.36— | 5.13AA | 2.52— |
| #4682B4 | 4.11AA Large | 2.36— | Same color | 2.17— | 1.07— |
| #2F4F4F | 8.93AAA | 5.13AA | 2.17— | Same color | 2.03— |
| #228B22 | 4.39AA Large | 2.52— | 1.07— | 2.03— | Same color |
Shades
Shades and tints (50–950)
