PreviewingGo to this paletteOpen in generator
Code
/* Lapis Blue — colorset.net */
:root {
--color-1: #1976D2;
--color-2: #1565C0;
--color-3: #0D47A1;
--color-4: #01579B;
--color-5: #0277BD;
--color-bg: #F1F7FF;
--color-surface: #E4EFFB;
--color-border: #CAD6E5;
--color-text: #2F4D7E;
--color-muted: #5D6B82;
--color-primary: #1976D2;
--color-on-primary: #FFFFFF;
--color-accent: #0D47A1;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #060F1E;
--color-surface: #101A2A;
--color-border: #222E42;
--color-text: #90A8C5;
--color-muted: #73869C;
--color-primary: #1976D2;
--color-on-primary: #FFFFFF;
--color-accent: #1E69AE;
--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 #1976D2 | adjusted for contrast · from #0D47A1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #01579B | adjusted for contrast · from #0277BD |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #1565C0 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 8.63:1 | AAA pass 4.5:1 | |
| Primary on background | 4.27:1 | AA Large pass 3:1 | |
| Accent on background | 8.01:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.13:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 5.70:1 | AA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 3.37: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 | #1976D2 (Text 1) | #1565C0 (Text 2) | #0D47A1 (Text 3) | #01579B (Text 4) | #0277BD (Text 5) |
|---|---|---|---|---|---|
| #1976D2 | Same color | 1.25— | 1.88— | 1.61— | 1.04— |
| #1565C0 | 1.25— | Same color | 1.50— | 1.29— | 1.20— |
| #0D47A1 | 1.88— | 1.50— | Same color | 1.17— | 1.80— |
| #01579B | 1.61— | 1.29— | 1.17— | Same color | 1.54— |
| #0277BD | 1.04— | 1.20— | 1.80— | 1.54— | Same color |
Shades
Shades and tints (50–950)
