A five-color palette
Ultramarine: a ultramarine, lavender and ink color palette
An ultramarine blue and a grayish indigo with lavender, a pale lavender and an ink. Its hex codes are #dae1fd, #4353b4, #b9c7fb, #1b1f35, #6f7ca8. 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 |
|---|---|---|---|---|
#dae1fd | Lavender (lavender) | oklch(91.3% 0.039 274.5) | 16.17:1 passes | 1.30:1 fails |
#4353b4 | Slate Blue (slateblue) | oklch(48.4% 0.154 272.3) | 3.14:1 fails | 6.70:1 passes |
#b9c7fb | Light Steel Blue (lightsteelblue) | oklch(83.7% 0.075 273.0) | 12.63:1 passes | 1.66:1 fails |
#1b1f35 | Midnight Blue (midnightblue) | oklch(24.7% 0.042 275.0) | 1.29:1 fails | 16.23:1 passes |
#6f7ca8 | Slate Grey (slategrey) | oklch(59.3% 0.069 271.5) | 5.12:1 passes | 4.10:1 fails |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #dae1fd, the lightest of the five, takes the background and #1b1f35, 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: #dae1fd;
--color-2: #4353b4;
--color-3: #b9c7fb;
--color-4: #1b1f35;
--color-5: #6f7ca8;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #dae1fd;
--color-2: #4353b4;
--color-3: #b9c7fb;
--color-4: #1b1f35;
--color-5: #6f7ca8;
--color-primary: #dae1fd;
--color-secondary: #4353b4;
--color-accent: #b9c7fb;
}SCSS variables
$color-1: #dae1fd;
$color-2: #4353b4;
$color-3: #b9c7fb;
$color-4: #1b1f35;
$color-5: #6f7ca8;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#dae1fd",
"#4353b4",
"#b9c7fb",
"#1b1f35",
"#6f7ca8"
]
}Hex list
#dae1fd
#4353b4
#b9c7fb
#1b1f35
#6f7ca8Coolors link
https://coolors.co/dae1fd-4353b4-b9c7fb-1b1f35-6f7ca8