A five-color palette
Ultraviolet: a azure, violet and orchid color palette
An azure blue and a deep violet with a pale lavender, an orchid pink and a dark aubergine. Its hex codes are #417ff0, #dfe2ff, #524088, #e0acfb, #3c123d. Open it in Recolor (recolor.page) to see it on a real web page, or copy the code below.
Last updated
| Hex | Nearest CSS name | OKLCH | Black text, AA | White text, AA |
|---|---|---|---|---|
#417ff0 | Dodger Blue (dodgerblue) | oklch(61.5% 0.182 261.2) | 5.52:1 passes | 3.81:1 fails |
#dfe2ff | Lavender (lavender) | oklch(91.9% 0.040 280.9) | 16.46:1 passes | 1.28:1 fails |
#524088 | Dark Slate Blue (darkslateblue) | oklch(42.7% 0.116 292.3) | 2.45:1 fails | 8.58:1 passes |
#e0acfb | Plum (plum) | oklch(81.9% 0.121 313.7) | 11.46:1 passes | 1.83:1 fails |
#3c123d | Midnight Blue (midnightblue) | oklch(27.0% 0.090 326.8) | 1.35:1 fails | 15.60:1 passes |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #dfe2ff, the lightest of the five, takes the background and #3c123d, the darkest, the text, and the page's other greys keep their place between the two; on a dark page the two swap. The other three take the page's colors in their order: the first of them its heaviest brand color, the next the one after. Reorder the swatches and the page reorders with them; mapping explains it, and the Tint choice that keeps a page's greys as they were. To keep text readable, the table above says whether black or white text reaches the WCAG AA ratio of 4.5:1 on each color.
The code below is what Recolor's own Export panel writes for this palette. The Tailwind block is a Tailwind v4 @theme block, and the Coolors link opens the same colors there. To see the palette on your own site first, follow previewing a palette on a real website.
The palette as code
CSS variables
:root {
--color-1: #417ff0;
--color-2: #dfe2ff;
--color-3: #524088;
--color-4: #e0acfb;
--color-5: #3c123d;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #417ff0;
--color-2: #dfe2ff;
--color-3: #524088;
--color-4: #e0acfb;
--color-5: #3c123d;
--color-primary: #417ff0;
--color-secondary: #dfe2ff;
--color-accent: #524088;
}SCSS variables
$color-1: #417ff0;
$color-2: #dfe2ff;
$color-3: #524088;
$color-4: #e0acfb;
$color-5: #3c123d;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#417ff0",
"#dfe2ff",
"#524088",
"#e0acfb",
"#3c123d"
]
}Hex list
#417ff0
#dfe2ff
#524088
#e0acfb
#3c123dCoolors link
https://coolors.co/417ff0-dfe2ff-524088-e0acfb-3c123d