PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Azure — colorset.net */
:root {
--color-1: #0F52BA;
--color-2: #003F7F;
--color-3: #0066CC;
--color-4: #4169E1;
--color-5: #6495ED;
--color-bg: #F2F7FF;
--color-surface: #E6EEFB;
--color-border: #CCD5E6;
--color-text: #1B416F;
--color-muted: #5B6C82;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #0F52BA;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #05101E;
--color-surface: #0E1A29;
--color-border: #202F42;
--color-text: #95A7C6;
--color-muted: #76849C;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #3068AB;
--color-on-accent: #FFFFFF;
}
}
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 #6495ED | adjusted for contrast · from #003F7F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #003F7F | adjusted for contrast · from #6495ED |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #0066CC |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.61:1 | AAA pass 4.5:1 | |
| Text on surface | 8.85: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 | 7.15:1 | AAA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 6.65:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 5.69:1 | AA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 3.36:1 | AA Large 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 | #0F52BA (Text 1) | #003F7F (Text 2) | #0066CC (Text 3) | #4169E1 (Text 4) | #6495ED (Text 5) |
|---|---|---|---|---|---|
| #0F52BA | Same color | 1.46— | 1.28— | 1.48— | 2.41— |
| #003F7F | 1.46— | Same color | 1.87— | 2.15— | 3.50AA Large |
| #0066CC | 1.28— | 1.87— | Same color | 1.15— | 1.87— |
| #4169E1 | 1.48— | 2.15— | 1.15— | Same color | 1.63— |
| #6495ED | 2.41— | 3.50AA Large | 1.87— | 1.63— | Same color |
Shades
Shades and tints (50–950)
