Midnight Blue & Gainsboro
A dark palette of 5 colors from the Afoli gallery: #0A0600, #181625, #322263, #1C496F, #CCDBFA.
Open in the Afoli palette generator →
#0A0600 · Black#181625 · Midnight Blue#322263 · Midnight Blue#1C496F · Dark Slate Gray#CCDBFA · Gainsboro
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #0A0600 | rgb(10, 6, 0) | hsl(36, 100%, 2%) | 0, 40, 100, 96 | ≈ Black |
| #181625 | rgb(24, 22, 37) | hsl(248, 25%, 12%) | 35, 41, 0, 85 | ≈ Midnight Blue |
| #322263 | rgb(50, 34, 99) | hsl(255, 49%, 26%) | 49, 66, 0, 61 | ≈ Midnight Blue |
| #1C496F | rgb(28, 73, 111) | hsl(207, 60%, 27%) | 75, 34, 0, 56 | ≈ Dark Slate Gray |
| #CCDBFA | rgb(204, 219, 250) | hsl(220, 82%, 89%) | 18, 12, 0, 2 | ≈ Gainsboro |
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 · #322263
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 14.52 : 1 | 85 | Pass |
| Text on a card | 14.52 : 1 | 85 | Pass |
| Button label | 9.76 : 1 | -80 | Pass |
| Heading on background | 9.76 : 1 | 78 | Pass |
| Link on a card | 9.76 : 1 | 78 | Pass |
| Accent badge on a card | 6.76 : 1 | 70 | Pass |
| Primary control on background | 9.76 : 1 | 78 | Pass |
CSS variables
:root {
--black: #0A0600;
--midnight-blue: #181625;
--midnight-blue-2: #322263;
--dark-slate-gray: #1C496F;
--gainsboro: #CCDBFA;
}
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 Midnight Blue & Gainsboro 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 Midnight Blue & Gainsboro can I use for text?
#0A0600 text on #CCDBFA reaches 14.52 : 1, the strongest pair of the palette.
Similar palettes
- Midnight Blue & Lavender
- Marine & Lavender (Dark)
- Dark Blue Grey & Bisque
- Dark Teal & Misty Rose
- Dark Slate Blue & Lavender
- Night Blue & Lavender
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)