A five-color palette
Lapis and gold: a lapis blue, gold and cream color palette
A lapis blue and a dark navy with an old gold, a straw gold and a pale butter. Its hex codes are #395bad, #ffeb9d, #a87b00, #171d32, #ceb358. 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 |
|---|---|---|---|---|
#395bad | Slate Blue (slateblue) | oklch(49.0% 0.137 264.9) | 3.27:1 fails | 6.41:1 passes |
#ffeb9d | Pale Goldenrod (palegoldenrod) | oklch(93.9% 0.100 95.5) | 17.62:1 passes | 1.19:1 fails |
#a87b00 | Dark Goldenrod (darkgoldenrod) | oklch(61.1% 0.126 82.8) | 5.50:1 passes | 3.82:1 fails |
#171d32 | Midnight Blue (midnightblue) | oklch(23.6% 0.042 270.8) | 1.26:1 fails | 16.69:1 passes |
#ceb358 | Dark Khaki (darkkhaki) | oklch(77.2% 0.115 93.0) | 10.21:1 passes | 2.06:1 fails |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #ffeb9d, the lightest of the five, takes the background and #171d32, 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: #395bad;
--color-2: #ffeb9d;
--color-3: #a87b00;
--color-4: #171d32;
--color-5: #ceb358;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #395bad;
--color-2: #ffeb9d;
--color-3: #a87b00;
--color-4: #171d32;
--color-5: #ceb358;
--color-primary: #395bad;
--color-secondary: #ffeb9d;
--color-accent: #a87b00;
}SCSS variables
$color-1: #395bad;
$color-2: #ffeb9d;
$color-3: #a87b00;
$color-4: #171d32;
$color-5: #ceb358;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#395bad",
"#ffeb9d",
"#a87b00",
"#171d32",
"#ceb358"
]
}Hex list
#395bad
#ffeb9d
#a87b00
#171d32
#ceb358Coolors link
https://coolors.co/395bad-ffeb9d-a87b00-171d32-ceb358