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
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #12022D | rgb(18, 2, 45) | hsl(262, 91%, 9%) | 60, 96, 0, 82 | ≈ Midnight Blue |
| #211A00 | rgb(33, 26, 0) | hsl(47, 100%, 6%) | 0, 21, 100, 87 | ≈ Dark Slate Gray |
| #324505 | rgb(50, 69, 5) | hsl(78, 86%, 15%) | 28, 0, 93, 73 | ≈ Dark Slate Gray |
| #F2ECFF | rgb(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
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 16.99 : 1 | 96 | Pass |
| Text on a card | 16.99 : 1 | 96 | Pass |
| Button label | 9.16 : 1 | -88 | Pass |
| Heading on background | 9.16 : 1 | 85 | Pass |
| Link on a card | 9.16 : 1 | 85 | Pass |
| Accent badge on a card | 15.03 : 1 | 94 | Pass |
| Primary control on background | 9.16 : 1 | 85 | Pass |
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
- Hunter Green & Gainsboro
- Dark Olive & Beige
- Night Blue & Lavender
- Mud Brown & Pale Sky Blue
- Plum Purple & Beige
- Aubergine & 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)