A five-color palette
Cobalt: a cobalt, navy and ice blue color palette
A saturated cobalt for buttons and links, a deeper blue and a navy for headers, light blue and ice for backgrounds. Its hex codes are #1885d5, #1f4e75, #002a4a, #8ecaff, #d0efff. 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 |
|---|---|---|---|---|
#1885d5 | Steel Blue (steelblue) | oklch(60.0% 0.151 247.5) | 5.35:1 passes | 3.92:1 fails |
#1f4e75 | Dark Slate Grey (darkslategrey) | oklch(41.1% 0.083 246.7) | 2.40:1 fails | 8.73:1 passes |
#002a4a | Midnight Blue (midnightblue) | oklch(27.8% 0.073 247.3) | 1.43:1 fails | 14.68:1 passes |
#8ecaff | Light Sky Blue (lightskyblue) | oklch(81.8% 0.097 246.0) | 12.04:1 passes | 1.74:1 fails |
#d0efff | Lavender (lavender) | oklch(93.5% 0.039 230.2) | 17.47:1 passes | 1.20:1 fails |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #d0efff, the lightest of the five, takes the background and #002a4a, 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: #1885d5;
--color-2: #1f4e75;
--color-3: #002a4a;
--color-4: #8ecaff;
--color-5: #d0efff;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #1885d5;
--color-2: #1f4e75;
--color-3: #002a4a;
--color-4: #8ecaff;
--color-5: #d0efff;
--color-primary: #1885d5;
--color-secondary: #1f4e75;
--color-accent: #002a4a;
}SCSS variables
$color-1: #1885d5;
$color-2: #1f4e75;
$color-3: #002a4a;
$color-4: #8ecaff;
$color-5: #d0efff;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#1885d5",
"#1f4e75",
"#002a4a",
"#8ecaff",
"#d0efff"
]
}Hex list
#1885d5
#1f4e75
#002a4a
#8ecaff
#d0efffCoolors link
https://coolors.co/1885d5-1f4e75-002a4a-8ecaff-d0efff