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
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #01031B | rgb(1, 3, 27) | hsl(235, 93%, 5%) | 96, 89, 0, 89 | ≈ Black |
| #20315D | rgb(32, 49, 93) | hsl(223, 49%, 25%) | 66, 47, 0, 64 | ≈ Midnight Blue |
| #D6EBFF | rgb(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
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 16.68 : 1 | 92 | Pass |
| Text on a card | 16.68 : 1 | 92 | Pass |
| Button label | 10.36 : 1 | -87 | Pass |
| Heading on background | 10.36 : 1 | 85 | Pass |
| Link on a card | 10.36 : 1 | 85 | Pass |
| Accent badge on a card | 10.36 : 1 | 85 | Pass |
| Primary control on background | 10.36 : 1 | 85 | Pass |
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
- Midnight Blue & Lavender
- Marine & Papaya Whip
- Mud Brown & Pale Sky Blue
- Midnight Blue & Gainsboro
- Night Blue & Lavender
- Midnight Purple & Beige
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)