PreviewingGo to this paletteOpen in generator
Code
/* Royal Periwinkle — colorset.net */
:root {
--color-1: #4169E1;
--color-2: #5179F1;
--color-3: #6189FF;
--color-4: #7199FF;
--color-5: #81A9FF;
--color-bg: #F3F7FF;
--color-surface: #E7EEFB;
--color-border: #CDD5E6;
--color-text: #394D81;
--color-muted: #616B83;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #1D3999;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #12192A;
--color-border: #242D42;
--color-text: #9CACCC;
--color-muted: #78849C;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #81A9FF;
--color-on-accent: #080F1F;
}
}
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 #81A9FF | adjusted for contrast · from #4169E1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4169E1 | adjusted for contrast · from #81A9FF |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4169E1 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.66:1 | AAA pass 4.5:1 | |
| Text on surface | 7.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 10.01:1 | AAA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 9.33:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.36:1 | AAA pass 4.5:1 | |
| Text on surface | 7.67:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 8.24:1 | AAA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 8.24: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 | #4169E1 (Text 1) | #5179F1 (Text 2) | #6189FF (Text 3) | #7199FF (Text 4) | #81A9FF (Text 5) |
|---|---|---|---|---|---|
| #4169E1 | Same color | 1.24— | 1.51— | 1.78— | 2.09— |
| #5179F1 | 1.24— | Same color | 1.22— | 1.44— | 1.69— |
| #6189FF | 1.51— | 1.22— | Same color | 1.18— | 1.39— |
| #7199FF | 1.78— | 1.44— | 1.18— | Same color | 1.18— |
| #81A9FF | 2.09— | 1.69— | 1.39— | 1.18— | Same color |
Shades
Shades and tints (50–950)
