AfoliOpen Afoli →

Cornflower & Navy Blue (Vivid)

A vivid palette of 4 colors from the Afoli gallery: #101A48, #D44B49, #6575F0, #00AF6B.

Open in the Afoli palette generator →

#101A48 · Midnight Blue#D44B49 · Indian Red#6575F0 · Medium Slate Blue#00AF6B · Medium Sea Green

Colors in this palette

HEXRGBHSLCMYKNearest named color
#101A48rgb(16, 26, 72)hsl(229, 64%, 17%)78, 64, 0, 72≈ Midnight Blue
#D44B49rgb(212, 75, 73)hsl(1, 62%, 56%)0, 65, 66, 17≈ Indian Red
#6575F0rgb(101, 117, 240)hsl(233, 82%, 67%)58, 51, 0, 6≈ Medium Slate Blue
#00AF6Brgb(0, 175, 107)hsl(157, 100%, 34%)100, 0, 39, 31≈ Medium Sea Green

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 · #6575F0
Button

Roles: background #101A48, surface #101A48, text #00AF6B, primary #6575F0, accent #D44B49 (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background5.81 : 1-46Pass (WCAG)
Text on a card5.81 : 1-46Pass (WCAG)
Button label4.24 : 135Fail
Heading on background4.24 : 1-33Pass (WCAG)
Link on a card4.24 : 1-33Fail
Accent badge on a card3.88 : 1-31Pass (WCAG)
Primary control on background4.24 : 1-33Pass (WCAG)

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 {
  --midnight-blue: #101A48;
  --indian-red: #D44B49;
  --medium-slate-blue: #6575F0;
  --medium-sea-green: #00AF6B;
}

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 Cornflower & Navy Blue (Vivid) 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 Cornflower & Navy Blue (Vivid) can I use for text?

#101A48 text on #00AF6B reaches 5.81 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026