A five-color palette
Blue hour: a slate blue, periwinkle and ink color palette
One hue in five steps: slate blue and periwinkle between an inky navy and a near-white blue. Its hex codes are #465b8a, #7f90b0, #151f3e, #acbde3, #e6efff. 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 |
|---|---|---|---|---|
#465b8a | Dark Slate Blue (darkslateblue) | oklch(47.5% 0.081 265.1) | 3.12:1 fails | 6.72:1 passes |
#7f90b0 | Light Slate Grey (lightslategrey) | oklch(65.1% 0.052 263.0) | 6.52:1 passes | 3.22:1 fails |
#151f3e | Midnight Blue (midnightblue) | oklch(24.8% 0.061 268.3) | 1.30:1 fails | 16.19:1 passes |
#acbde3 | Light Steel Blue (lightsteelblue) | oklch(79.8% 0.057 266.1) | 11.14:1 passes | 1.88:1 fails |
#e6efff | Lavender (lavender) | oklch(95.0% 0.024 262.1) | 18.16:1 passes | 1.16:1 fails |
Using the palette
In Recolor the order of the colors is meaning: swatch 1 takes the page's heaviest brand color, swatch 2 the next, and the page's greys take a tint of swatch 1 (how that works is in mapping). Reorder the swatches and the page reorders with them. 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; #151f3e is the darkest of the five.
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: #465b8a;
--color-2: #7f90b0;
--color-3: #151f3e;
--color-4: #acbde3;
--color-5: #e6efff;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #465b8a;
--color-2: #7f90b0;
--color-3: #151f3e;
--color-4: #acbde3;
--color-5: #e6efff;
--color-primary: #465b8a;
--color-secondary: #7f90b0;
--color-accent: #151f3e;
}SCSS variables
$color-1: #465b8a;
$color-2: #7f90b0;
$color-3: #151f3e;
$color-4: #acbde3;
$color-5: #e6efff;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#465b8a",
"#7f90b0",
"#151f3e",
"#acbde3",
"#e6efff"
]
}Hex list
#465b8a
#7f90b0
#151f3e
#acbde3
#e6efffCoolors link
https://coolors.co/465b8a-7f90b0-151f3e-acbde3-e6efff