Cool Blue & Almost Black
A monochrome palette of 3 colors from the Afoli gallery: #001122, #4987B7, #EDF6FF.
Open in the Afoli palette generator →
#001122 · Midnight Blue#4987B7 · Steel Blue#EDF6FF · Alice Blue
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #001122 | rgb(0, 17, 34) | hsl(210, 100%, 7%) | 100, 50, 0, 87 | ≈ Midnight Blue |
| #4987B7 | rgb(73, 135, 183) | hsl(206, 43%, 50%) | 60, 26, 0, 28 | ≈ Steel Blue |
| #EDF6FF | rgb(237, 246, 255) | hsl(210, 100%, 96%) | 7, 4, 0, 0 | ≈ Alice Blue |
Preview in a UI
A heading in the primary color
Body text on the background, as a page or an app would show it.
Text on a card · #4987B7
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 17.43 : 1 | -101 | Pass |
| Text on a card | 17.43 : 1 | -101 | Pass |
| Button label | 4.92 : 1 | 37 | Pass (WCAG) |
| Heading on background | 4.92 : 1 | -35 | Pass (WCAG) |
| Link on a card | 4.92 : 1 | -35 | Pass (WCAG) |
| Accent badge on a card | 4.92 : 1 | -35 | Pass (WCAG) |
| Primary control on background | 4.92 : 1 | -35 | Pass (WCAG) |
CSS variables
:root {
--midnight-blue: #001122;
--steel-blue: #4987B7;
--alice-blue: #EDF6FF;
}
How this palette was made
Afoli generated it from a fixed seed and kept it because it passes the gallery rules: every color is clearly distinct, one pair reaches 4.5 : 1 for text and the colors span a wide light-to-dark range. It is free to use (CC0).
Frequently asked questions
How do I use the Cool Blue & Almost Black palette in CSS?
Copy the CSS variables on this page, or open the palette in the Afoli generator to export Tailwind, JSON, SVG, PNG or Adobe ASE.
Which colors of Cool Blue & Almost Black can I use for text?
#001122 text on #EDF6FF reaches 17.43 : 1, the strongest pair of the palette.
Similar palettes
- Steel Blue & Alice Blue
- Teal Blue & Ice Blue
- Perrywinkle & Almost Black
- Windows Blue & Lavender
- Night Blue & Alice Blue (Mono)
- Navy Blue & Pale Blue
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)