A shared five-color palette
Midnight blue, cadet blue and peach puff: a five-color palette
A five-color palette made in Recolor (recolor.page): #00252d, #4f98a4, #f3daca, #7e451b and #9fb5fe. White text reaches the WCAG AA ratio of 4.5:1 on #00252d and #7e451b, black text on #4f98a4, #f3daca and #9fb5fe.
Shared
| Hex | Nearest CSS name | OKLCH | Black text, AA | White text, AA |
|---|---|---|---|---|
#00252d | Midnight Blue (midnightblue) | oklch(24.4% 0.043 215.6) | 1.30:1 fails | 16.12:1 passes |
#4f98a4 | Cadet Blue (cadetblue) | oklch(63.7% 0.075 209.4) | 6.36:1 passes | 3.30:1 fails |
#f3daca | Peach Puff (peachpuff) | oklch(90.5% 0.035 54.8) | 15.69:1 passes | 1.34:1 fails |
#7e451b | Saddle Brown (saddlebrown) | oklch(45.2% 0.095 53.6) | 2.75:1 fails | 7.62:1 passes |
#9fb5fe | Light Sky Blue (lightskyblue) | oklch(78.4% 0.107 270.9) | 10.51:1 passes | 2.00:1 fails |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #f3daca, the lightest of the five, takes the background and #00252d, 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: #00252d;
--color-2: #4f98a4;
--color-3: #f3daca;
--color-4: #7e451b;
--color-5: #9fb5fe;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #00252d;
--color-2: #4f98a4;
--color-3: #f3daca;
--color-4: #7e451b;
--color-5: #9fb5fe;
--color-primary: #00252d;
--color-secondary: #4f98a4;
--color-accent: #f3daca;
}SCSS variables
$color-1: #00252d;
$color-2: #4f98a4;
$color-3: #f3daca;
$color-4: #7e451b;
$color-5: #9fb5fe;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#00252d",
"#4f98a4",
"#f3daca",
"#7e451b",
"#9fb5fe"
]
}Hex list
#00252d
#4f98a4
#f3daca
#7e451b
#9fb5feCoolors link
https://coolors.co/00252d-4f98a4-f3daca-7e451b-9fb5fe