AfoliOpen Afoli →

Marine & Papaya Whip

A dark palette of 5 colors from the Afoli gallery: #040423, #081C46, #1B2E60, #48441A, #FBF2CB.

Open in the Afoli palette generator →

#040423 · Black#081C46 · Midnight Blue#1B2E60 · Midnight Blue#48441A · Dark Slate Gray#FBF2CB · Papaya Whip

Colors in this palette

HEXRGBHSLCMYKNearest named color
#040423rgb(4, 4, 35)hsl(240, 79%, 8%)89, 89, 0, 86≈ Black
#081C46rgb(8, 28, 70)hsl(221, 79%, 15%)89, 60, 0, 73≈ Midnight Blue
#1B2E60rgb(27, 46, 96)hsl(223, 56%, 24%)72, 52, 0, 62≈ Midnight Blue
#48441Argb(72, 68, 26)hsl(55, 47%, 19%)0, 6, 64, 72≈ Dark Slate Gray
#FBF2CBrgb(251, 242, 203)hsl(49, 86%, 89%)0, 4, 19, 2≈ Papaya Whip

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 · #1B2E60
Button

Roles: background #FBF2CB, surface #FBF2CB, text #040423, primary #1B2E60, accent #48441A (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background17.83 : 198Pass
Text on a card17.83 : 198Pass
Button label11.62 : 1-93Pass
Heading on background11.62 : 191Pass
Link on a card11.62 : 191Pass
Accent badge on a card8.82 : 185Pass
Primary control on background11.62 : 191Pass

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: #040423;
  --midnight-blue: #081C46;
  --midnight-blue-2: #1B2E60;
  --dark-slate-gray: #48441A;
  --papaya-whip: #FBF2CB;
}

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 & Papaya Whip 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 & Papaya Whip can I use for text?

#040423 text on #FBF2CB reaches 17.83 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026