Navy Green & Gainsboro
A dark palette of 5 colors from the Afoli gallery: #040700, #36032F, #233325, #384E00, #D3EADB.
Open in the Afoli palette generator →
#040700 · Black#36032F · Midnight Blue#233325 · Dark Slate Gray#384E00 · Dark Green#D3EADB · Gainsboro
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #040700 | rgb(4, 7, 0) | hsl(86, 100%, 1%) | 43, 0, 100, 97 | ≈ Black |
| #36032F | rgb(54, 3, 47) | hsl(308, 89%, 11%) | 0, 94, 13, 79 | ≈ Midnight Blue |
| #233325 | rgb(35, 51, 37) | hsl(128, 19%, 17%) | 31, 0, 27, 80 | ≈ Dark Slate Gray |
| #384E00 | rgb(56, 78, 0) | hsl(77, 100%, 15%) | 28, 0, 100, 69 | ≈ Dark Green |
| #D3EADB | rgb(211, 234, 219) | hsl(141, 35%, 87%) | 10, 0, 6, 8 | ≈ 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 · #384E00
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 15.99 : 1 | 90 | Pass |
| Text on a card | 15.99 : 1 | 90 | Pass |
| Button label | 7.34 : 1 | -78 | Pass |
| Heading on background | 7.34 : 1 | 76 | Pass |
| Link on a card | 7.34 : 1 | 76 | Pass |
| Accent badge on a card | 13.68 : 1 | 88 | Pass |
| Primary control on background | 7.34 : 1 | 76 | Pass |
CSS variables
:root {
--black: #040700;
--midnight-blue: #36032F;
--dark-slate-gray: #233325;
--dark-green: #384E00;
--gainsboro: #D3EADB;
}
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 Navy Green & 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 Navy Green & Gainsboro can I use for text?
#040700 text on #D3EADB reaches 15.99 : 1, the strongest pair of the palette.
Similar palettes
- Forest & Pale Aqua
- Aubergine & Lavender
- Dark Plum & Misty Rose
- Dark Teal & Pale Turquoise
- Evergreen & Lavender
- Dark Maroon & Light 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)