PreviewingGo to this paletteOpen in generator
Code
/* Royal Lapis — colorset.net */
:root {
--color-1: #082567;
--color-2: #0F52BA;
--color-3: #0067A5;
--color-4: #0080FF;
--color-5: #1E90FF;
--color-bg: #F1F7FF;
--color-surface: #E4EFFB;
--color-border: #CAD6E5;
--color-text: #132958;
--color-muted: #606C83;
--color-primary: #0072E4;
--color-on-primary: #FFFFFF;
--color-accent: #0F52BA;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #070F1F;
--color-surface: #11192A;
--color-border: #232E42;
--color-text: #90A8C4;
--color-muted: #73859B;
--color-primary: #0072E4;
--color-on-primary: #FFFFFF;
--color-accent: #4164AC;
--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 #1E90FF | adjusted for contrast · from #082567 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #082567 | adjusted for contrast · from #1E90FF |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #0080FF | adjusted for contrast · from #0080FF |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0067A5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.12:1 | AAA pass 4.5:1 | |
| Text on surface | 12.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 7.15:1 | AAA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 6.64:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.82:1 | AAA pass 4.5:1 | |
| Text on surface | 7.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.76:1 | AA pass 4.5:1 | |
| Primary on background | 4.13:1 | AA Large pass 3:1 | |
| Accent on background | 3.32: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 | #082567 (Text 1) | #0F52BA (Text 2) | #0067A5 (Text 3) | #0080FF (Text 4) | #1E90FF (Text 5) |
|---|---|---|---|---|---|
| #082567 | Same color | 2.00— | 2.37— | 3.76AA Large | 4.41AA Large |
| #0F52BA | 2.00— | Same color | 1.19— | 1.88— | 2.21— |
| #0067A5 | 2.37— | 1.19— | Same color | 1.59— | 1.86— |
| #0080FF | 3.76AA Large | 1.88— | 1.59— | Same color | 1.17— |
| #1E90FF | 4.41AA Large | 2.21— | 1.86— | 1.17— | Same color |
Shades
Shades and tints (50–950)
