AfoliOpen Afoli →

Dark Olive & Lavender

A dark palette of 4 colors from the Afoli gallery: #12022D, #211A00, #324505, #F2ECFF.

Open in the Afoli palette generator →

#12022D · Midnight Blue#211A00 · Dark Slate Gray#324505 · Dark Slate Gray#F2ECFF · Lavender

Colors in this palette

HEXRGBHSLCMYKNearest named color
#12022Drgb(18, 2, 45)hsl(262, 91%, 9%)60, 96, 0, 82≈ Midnight Blue
#211A00rgb(33, 26, 0)hsl(47, 100%, 6%)0, 21, 100, 87≈ Dark Slate Gray
#324505rgb(50, 69, 5)hsl(78, 86%, 15%)28, 0, 93, 73≈ Dark Slate Gray
#F2ECFFrgb(242, 236, 255)hsl(259, 100%, 96%)5, 7, 0, 0≈ Lavender

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 · #324505
Button

Roles: background #F2ECFF, surface #F2ECFF, text #12022D, primary #324505, accent #211A00 (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background16.99 : 196Pass
Text on a card16.99 : 196Pass
Button label9.16 : 1-88Pass
Heading on background9.16 : 185Pass
Link on a card9.16 : 185Pass
Accent badge on a card15.03 : 194Pass
Primary control on background9.16 : 185Pass

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 {
  --midnight-blue: #12022D;
  --dark-slate-gray: #211A00;
  --dark-slate-gray-2: #324505;
  --lavender: #F2ECFF;
}

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 Dark Olive & Lavender 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 Dark Olive & Lavender can I use for text?

#12022D text on #F2ECFF reaches 16.99 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026