PreviewingGo to this paletteOpen in generator
Code
/* Cassette Blue — colorset.net */
:root {
--color-1: #0E1A3A;
--color-2: #4D8BFF;
--color-3: #FF5CA8;
--color-4: #22305A;
--color-5: #EDF2FF;
--color-bg: #EDF2FF;
--color-surface: #F7F9FF;
--color-border: #D3D9E9;
--color-text: #0E1A3A;
--color-muted: #626D85;
--color-primary: #ED4B99;
--color-on-primary: #0E1A3A;
--color-accent: #4A88FB;
--color-on-accent: #0E1A3A;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E1A3A;
--color-surface: #182546;
--color-border: #333C52;
--color-text: #EDF2FF;
--color-muted: #8B909C;
--color-primary: #FF5CA8;
--color-on-primary: #0E1A3A;
--color-accent: #4D8BFF;
--color-on-accent: #0E1A3A;
}
}
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 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF5CA8 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4D8BFF | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.27:1 | AAA pass 4.5:1 | |
| Text on surface | 16.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.63:1 | AA pass 4.5:1 | |
| Label on primary | 4.94:1 | AA pass 4.5:1 | |
| Label on accent | 5.06:1 | AA pass 4.5:1 | |
| Primary on background | 3.09:1 | AA Large pass 3:1 | |
| Accent on background | 3.02:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.27:1 | AAA pass 4.5:1 | |
| Text on surface | 13.47:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.35:1 | AA pass 4.5:1 | |
| Label on primary | 5.99:1 | AA pass 4.5:1 | |
| Label on accent | 5.26:1 | AA pass 4.5:1 | |
| Primary on background | 5.99:1 | AA pass 3:1 | |
| Accent on background | 5.26: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 | #0E1A3A (Text 1) | #4D8BFF (Text 2) | #FF5CA8 (Text 3) | #22305A (Text 4) | #EDF2FF (Text 5) |
|---|---|---|---|---|---|
| #0E1A3A | Same color | 5.26AA | 5.99AA | 1.33— | 15.27AAA |
| #4D8BFF | 5.26AA | Same color | 1.14— | 3.94AA Large | 2.91— |
| #FF5CA8 | 5.99AA | 1.14— | Same color | 4.48AA Large | 2.55— |
| #22305A | 1.33— | 3.94AA Large | 4.48AA Large | Same color | 11.44AAA |
| #EDF2FF | 15.27AAA | 2.91— | 2.55— | 11.44AAA | Same color |
Shades
Shades and tints (50–950)
