PreviewingGo to this paletteOpen in generator
Code
/* Cornflower Drift — colorset.net */
:root {
--color-1: #4F86C6;
--color-2: #4169E1;
--color-3: #6495ED;
--color-4: #87CEEB;
--color-5: #B0E0E6;
--color-bg: #ECFAFC;
--color-surface: #E3F1F2;
--color-border: #C7D9DB;
--color-text: #394D81;
--color-muted: #616B83;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #639196;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #12192A;
--color-border: #242D42;
--color-text: #B0E0E6;
--color-muted: #678A8F;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #87CEEB;
--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 #B0E0E6 | adjusted for contrast · from #4169E1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4169E1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4F86C6 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.70:1 | AAA pass 4.5:1 | |
| Text on surface | 7.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 6.02:1 | AA pass 4.5:1 | |
| Primary on background | 4.53:1 | AA pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.34:1 | AAA pass 4.5:1 | |
| Text on surface | 12.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 10.98:1 | AAA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 10.98: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 | #4F86C6 (Text 1) | #4169E1 (Text 2) | #6495ED (Text 3) | #87CEEB (Text 4) | #B0E0E6 (Text 5) |
|---|---|---|---|---|---|
| #4F86C6 | Same color | 1.28— | 1.27— | 2.17— | 2.64— |
| #4169E1 | 1.28— | Same color | 1.63— | 2.78— | 3.38AA Large |
| #6495ED | 1.27— | 1.63— | Same color | 1.71— | 2.07— |
| #87CEEB | 2.17— | 2.78— | 1.71— | Same color | 1.22— |
| #B0E0E6 | 2.64— | 3.38AA Large | 2.07— | 1.22— | Same color |
Shades
Shades and tints (50–950)
