A five-color palette
Twilight: a cerulean, indigo and lilac color palette
A cerulean and an indigo with a pale blue, a lilac and a dark purple. Its hex codes are #0092d2, #ddf2ff, #3b4c92, #c0b4fd, #291735. 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 |
|---|---|---|---|---|
#0092d2 | Steel Blue (steelblue) | oklch(62.7% 0.140 238.3) | 6.04:1 passes | 3.48:1 fails |
#ddf2ff | Alice Blue (aliceblue) | oklch(95.0% 0.028 234.8) | 18.22:1 passes | 1.15:1 fails |
#3b4c92 | Dark Slate Blue (darkslateblue) | oklch(44.0% 0.116 270.7) | 2.63:1 fails | 7.97:1 passes |
#c0b4fd | Plum (plum) | oklch(80.6% 0.103 291.5) | 11.19:1 passes | 1.88:1 fails |
#291735 | Midnight Blue (midnightblue) | oklch(24.4% 0.059 310.4) | 1.27:1 fails | 16.56:1 passes |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #ddf2ff, the lightest of the five, takes the background and #291735, 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: #0092d2;
--color-2: #ddf2ff;
--color-3: #3b4c92;
--color-4: #c0b4fd;
--color-5: #291735;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #0092d2;
--color-2: #ddf2ff;
--color-3: #3b4c92;
--color-4: #c0b4fd;
--color-5: #291735;
--color-primary: #0092d2;
--color-secondary: #ddf2ff;
--color-accent: #3b4c92;
}SCSS variables
$color-1: #0092d2;
$color-2: #ddf2ff;
$color-3: #3b4c92;
$color-4: #c0b4fd;
$color-5: #291735;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#0092d2",
"#ddf2ff",
"#3b4c92",
"#c0b4fd",
"#291735"
]
}Hex list
#0092d2
#ddf2ff
#3b4c92
#c0b4fd
#291735Coolors link
https://coolors.co/0092d2-ddf2ff-3b4c92-c0b4fd-291735