PreviewingGo to this paletteOpen in generator
Code
/* Cosmic Blue — colorset.net */
:root {
--color-1: #E8EAF6;
--color-2: #C5CAE9;
--color-3: #9FA8DA;
--color-4: #7986CB;
--color-5: #5C6BC0;
--color-bg: #E8EAF6;
--color-surface: #F0F2F9;
--color-border: #CFD1E1;
--color-text: #3D477D;
--color-muted: #636982;
--color-primary: #5C6BC0;
--color-on-primary: #FFFFFF;
--color-accent: #838590;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B0E1F;
--color-surface: #14182A;
--color-border: #272C42;
--color-text: #E8EAF6;
--color-muted: #82848F;
--color-primary: #5C6BC0;
--color-on-primary: #FFFFFF;
--color-accent: #C5CAE9;
--color-on-accent: #0B0E1F;
}
}
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 #5C6BC0 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #5C6BC0 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7986CB | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.32:1 | AAA pass 4.5:1 | |
| Text on surface | 7.84:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.53:1 | AA pass 4.5:1 | |
| Label on primary | 4.86:1 | AA pass 4.5:1 | |
| Label on accent | 5.72:1 | AA pass 4.5:1 | |
| Primary on background | 4.06:1 | AA Large pass 3:1 | |
| Accent on background | 3.06:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.98:1 | AAA pass 4.5:1 | |
| Text on surface | 14.68:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.15:1 | AA pass 4.5:1 | |
| Label on primary | 4.86:1 | AA pass 4.5:1 | |
| Label on accent | 11.85:1 | AAA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 11.85: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 | #E8EAF6 (Text 1) | #C5CAE9 (Text 2) | #9FA8DA (Text 3) | #7986CB (Text 4) | #5C6BC0 (Text 5) |
|---|---|---|---|---|---|
| #E8EAF6 | Same color | 1.35— | 1.93— | 2.88— | 4.06AA Large |
| #C5CAE9 | 1.35— | Same color | 1.43— | 2.14— | 3.01AA Large |
| #9FA8DA | 1.93— | 1.43— | Same color | 1.49— | 2.10— |
| #7986CB | 2.88— | 2.14— | 1.49— | Same color | 1.41— |
| #5C6BC0 | 4.06AA Large | 3.01AA Large | 2.10— | 1.41— | Same color |
Shades
Shades and tints (50–950)
