AfoliOpen Afoli →

Marine & Lavender (Dark)

A dark palette of 3 colors from the Afoli gallery: #01031B, #20315D, #D6EBFF.

Open in the Afoli palette generator →

#01031B · Black#20315D · Midnight Blue#D6EBFF · Lavender

Colors in this palette

HEXRGBHSLCMYKNearest named color
#01031Brgb(1, 3, 27)hsl(235, 93%, 5%)96, 89, 0, 89≈ Black
#20315Drgb(32, 49, 93)hsl(223, 49%, 25%)66, 47, 0, 64≈ Midnight Blue
#D6EBFFrgb(214, 235, 255)hsl(209, 100%, 92%)16, 8, 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 · #20315D
Button

Roles: background #D6EBFF, surface #D6EBFF, text #01031B, primary #20315D, accent #20315D (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background16.68 : 192Pass
Text on a card16.68 : 192Pass
Button label10.36 : 1-87Pass
Heading on background10.36 : 185Pass
Link on a card10.36 : 185Pass
Accent badge on a card10.36 : 185Pass
Primary control on background10.36 : 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 {
  --black: #01031B;
  --midnight-blue: #20315D;
  --lavender: #D6EBFF;
}

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

#01031B text on #D6EBFF reaches 16.68 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026