PreviewingGo to this paletteOpen in generator
Code
/* Ultramarine Blue — colorset.net */
:root {
--color-1: #120A8F;
--color-2: #2621A1;
--color-3: #3A38B3;
--color-4: #4E4FC5;
--color-5: #6266D7;
--color-bg: #F5F6FF;
--color-surface: #EAEDFB;
--color-border: #D1D4E6;
--color-text: #1D2B5C;
--color-muted: #616B83;
--color-primary: #6266D7;
--color-on-primary: #FFFFFF;
--color-accent: #120A8F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #090E1F;
--color-surface: #13192A;
--color-border: #252D42;
--color-text: #9FA4C6;
--color-muted: #7E829C;
--color-primary: #6266D7;
--color-on-primary: #FFFFFF;
--color-accent: #96A0FF;
--color-on-accent: #090E1F;
}
}
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 #6266D7 | adjusted for contrast · from #120A8F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #120A8F | adjusted for contrast · from #6266D7 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #6266D7 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.57:1 | AAA pass 4.5:1 | |
| Text on surface | 11.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 4.77:1 | AA pass 4.5:1 | |
| Label on accent | 14.33:1 | AAA pass 4.5:1 | |
| Primary on background | 4.43:1 | AA Large pass 3:1 | |
| Accent on background | 13.31:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.77:1 | AA pass 4.5:1 | |
| Label on accent | 8.01:1 | AAA pass 4.5:1 | |
| Primary on background | 4.02:1 | AA Large pass 3:1 | |
| Accent on background | 8.01: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 | #120A8F (Text 1) | #2621A1 (Text 2) | #3A38B3 (Text 3) | #4E4FC5 (Text 4) | #6266D7 (Text 5) |
|---|---|---|---|---|---|
| #120A8F | Same color | 1.24— | 1.63— | 2.22— | 3.00AA Large |
| #2621A1 | 1.24— | Same color | 1.32— | 1.79— | 2.43— |
| #3A38B3 | 1.63— | 1.32— | Same color | 1.36— | 1.84— |
| #4E4FC5 | 2.22— | 1.79— | 1.36— | Same color | 1.35— |
| #6266D7 | 3.00AA Large | 2.43— | 1.84— | 1.35— | Same color |
Shades
Shades and tints (50–950)
