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

#1885d5Steel Blue
#1f4e75Dark Slate Grey
#002a4aMidnight Blue
#8ecaffLight Sky Blue
#d0efffLavender
Computed with Recolor's own color code (culori, the WCAG 2 contrast ratio), November 12, 2026
HexNearest CSS nameOKLCHBlack text, AAWhite text, AA
#1885d5Steel Blue (steelblue)oklch(60.0% 0.151 247.5)5.35:1 passes3.92:1 fails
#1f4e75Dark Slate Grey (darkslategrey)oklch(41.1% 0.083 246.7)2.40:1 fails8.73:1 passes
#002a4aMidnight Blue (midnightblue)oklch(27.8% 0.073 247.3)1.43:1 fails14.68:1 passes
#8ecaffLight Sky Blue (lightskyblue)oklch(81.8% 0.097 246.0)12.04:1 passes1.74:1 fails
#d0efffLavender (lavender)oklch(93.5% 0.039 230.2)17.47:1 passes1.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

CSS
: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

CSS
@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

SCSS
$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

JSON
{
  "colors": [
    "#1885d5",
    "#1f4e75",
    "#002a4a",
    "#8ecaff",
    "#d0efff"
  ]
}

Hex list

Text
#1885d5
#1f4e75
#002a4a
#8ecaff
#d0efff

Coolors link

URL
https://coolors.co/1885d5-1f4e75-002a4a-8ecaff-d0efff