Night Blue & Lavender
A dark palette of 6 colors from the Afoli gallery: #0D0D00, #010242, #371F05, #2B3A59, #513B00, #DBE6FB.
Open in the Afoli palette generator →
#0D0D00 · Black#010242 · Midnight Blue#371F05 · Maroon#2B3A59 · Dark Slate Gray#513B00 · Dark Slate Gray#DBE6FB · Lavender
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #0D0D00 | rgb(13, 13, 0) | hsl(60, 100%, 3%) | 0, 0, 100, 95 | ≈ Black |
| #010242 | rgb(1, 2, 66) | hsl(239, 97%, 13%) | 98, 97, 0, 74 | ≈ Midnight Blue |
| #371F05 | rgb(55, 31, 5) | hsl(31, 83%, 12%) | 0, 44, 91, 78 | ≈ Maroon |
| #2B3A59 | rgb(43, 58, 89) | hsl(220, 35%, 26%) | 52, 35, 0, 65 | ≈ Dark Slate Gray |
| #513B00 | rgb(81, 59, 0) | hsl(44, 100%, 16%) | 0, 27, 100, 68 | ≈ Dark Slate Gray |
| #DBE6FB | rgb(219, 230, 251) | hsl(219, 80%, 92%) | 13, 8, 0, 2 | ≈ 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 · #010242
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 15.56 : 1 | 91 | Pass |
| Text on a card | 15.56 : 1 | 91 | Pass |
| Button label | 15.36 : 1 | -90 | Pass |
| Heading on background | 15.36 : 1 | 90 | Pass |
| Link on a card | 15.36 : 1 | 90 | Pass |
| Accent badge on a card | 8.47 : 1 | 79 | Pass |
| Primary control on background | 15.36 : 1 | 90 | Pass |
CSS variables
:root {
--black: #0D0D00;
--midnight-blue: #010242;
--maroon: #371F05;
--dark-slate-gray: #2B3A59;
--dark-slate-gray-2: #513B00;
--lavender: #DBE6FB;
}
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 Night Blue & 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 Night Blue & Lavender can I use for text?
#0D0D00 text on #DBE6FB reaches 15.56 : 1, the strongest pair of the palette.
Similar palettes
- Mud Brown & Pale Sky Blue
- Dark Brown & Moccasin
- Dark Blue Grey & Bisque
- Dark Olive & Lavender
- Midnight Blue & Lavender
- Marine & Bisque
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)