PreviewingGo to this paletteOpen in generator
Code
/* Ultramarine Violet — colorset.net */
:root {
--color-1: #120A8F;
--color-2: #3F00FF;
--color-3: #4166F5;
--color-4: #4B0082;
--color-5: #5D3FD3;
--color-bg: #F3F7FF;
--color-surface: #E8EDFB;
--color-border: #CED5E6;
--color-text: #1D2B5C;
--color-muted: #616B83;
--color-primary: #3F00FF;
--color-on-primary: #FFFFFF;
--color-accent: #4B0082;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #090E1F;
--color-surface: #13192A;
--color-border: #252D42;
--color-text: #97A4C5;
--color-muted: #78839C;
--color-primary: #4947FF;
--color-on-primary: #FFFFFF;
--color-accent: #8049C0;
--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 #4166F5 | adjusted for contrast · from #120A8F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #120A8F | adjusted for contrast · from #4166F5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #4166F5 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #5D3FD3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.60:1 | AAA pass 4.5:1 | |
| Text on surface | 11.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 7.91:1 | AAA pass 4.5:1 | |
| Label on accent | 12.95:1 | AAA pass 4.5:1 | |
| Primary on background | 7.37:1 | AAA pass 3:1 | |
| Accent on background | 12.06:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.71:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.79:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 3.32: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 | #120A8F (Text 1) | #3F00FF (Text 2) | #4166F5 (Text 3) | #4B0082 (Text 4) | #5D3FD3 (Text 5) |
|---|---|---|---|---|---|
| #120A8F | Same color | 1.81— | 3.03AA Large | 1.11— | 2.13— |
| #3F00FF | 1.81— | Same color | 1.67— | 1.64— | 1.17— |
| #4166F5 | 3.03AA Large | 1.67— | Same color | 2.74— | 1.43— |
| #4B0082 | 1.11— | 1.64— | 2.74— | Same color | 1.92— |
| #5D3FD3 | 2.13— | 1.17— | 1.43— | 1.92— | Same color |
Shades
Shades and tints (50–950)
