PreviewingGo to this paletteOpen in generator
Code
/* Cornflower Royal — colorset.net */
:root {
--color-1: #4169E1;
--color-2: #5579F1;
--color-3: #6989FF;
--color-4: #7D99FF;
--color-5: #91A9FF;
--color-bg: #F4F7FF;
--color-surface: #E8EDFB;
--color-border: #CFD4E6;
--color-text: #394D81;
--color-muted: #616B83;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #5D71C2;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #12192A;
--color-border: #242D42;
--color-text: #A2ADCF;
--color-muted: #79819B;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #91A9FF;
--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 #91A9FF | adjusted for contrast · from #4169E1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4169E1 | adjusted for contrast · from #91A9FF |
| 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.68:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03: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 | 4.56:1 | AA pass 4.5:1 | |
| Primary on background | 4.52:1 | AA pass 3:1 | |
| Accent on background | 4.25:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.57:1 | AAA pass 4.5:1 | |
| Text on surface | 7.86:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 8.49:1 | AAA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 8.49: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) | #5579F1 (Text 2) | #6989FF (Text 3) | #7D99FF (Text 4) | #91A9FF (Text 5) |
|---|---|---|---|---|---|
| #4169E1 | Same color | 1.24— | 1.53— | 1.82— | 2.15— |
| #5579F1 | 1.24— | Same color | 1.23— | 1.46— | 1.73— |
| #6989FF | 1.53— | 1.23— | Same color | 1.19— | 1.41— |
| #7D99FF | 1.82— | 1.46— | 1.19— | Same color | 1.18— |
| #91A9FF | 2.15— | 1.73— | 1.41— | 1.18— | Same color |
Shades
Shades and tints (50–950)
