AfoliOpen Afoli →

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

HEXRGBHSLCMYKNearest named color
#0D0D00rgb(13, 13, 0)hsl(60, 100%, 3%)0, 0, 100, 95≈ Black
#010242rgb(1, 2, 66)hsl(239, 97%, 13%)98, 97, 0, 74≈ Midnight Blue
#371F05rgb(55, 31, 5)hsl(31, 83%, 12%)0, 44, 91, 78≈ Maroon
#2B3A59rgb(43, 58, 89)hsl(220, 35%, 26%)52, 35, 0, 65≈ Dark Slate Gray
#513B00rgb(81, 59, 0)hsl(44, 100%, 16%)0, 27, 100, 68≈ Dark Slate Gray
#DBE6FBrgb(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
Button

Roles: background #DBE6FB, surface #DBE6FB, text #0D0D00, primary #010242, accent #513B00 (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background15.56 : 191Pass
Text on a card15.56 : 191Pass
Button label15.36 : 1-90Pass
Heading on background15.36 : 190Pass
Link on a card15.36 : 190Pass
Accent badge on a card8.47 : 179Pass
Primary control on background15.36 : 190Pass

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: #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

Sources and licences

Updated November 21, 2026