AfoliOpen Afoli →

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

HEXRGBHSLCMYKNearest named color
#040700rgb(4, 7, 0)hsl(86, 100%, 1%)43, 0, 100, 97≈ Black
#36032Frgb(54, 3, 47)hsl(308, 89%, 11%)0, 94, 13, 79≈ Midnight Blue
#233325rgb(35, 51, 37)hsl(128, 19%, 17%)31, 0, 27, 80≈ Dark Slate Gray
#384E00rgb(56, 78, 0)hsl(77, 100%, 15%)28, 0, 100, 69≈ Dark Green
#D3EADBrgb(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
Button

Roles: background #D3EADB, surface #D3EADB, text #040700, primary #384E00, accent #36032F (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background15.99 : 190Pass
Text on a card15.99 : 190Pass
Button label7.34 : 1-78Pass
Heading on background7.34 : 176Pass
Link on a card7.34 : 176Pass
Accent badge on a card13.68 : 188Pass
Primary control on background7.34 : 176Pass

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

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

Sources and licences

Updated November 21, 2026