About Alice Blue
Alice Blue (aliceblue) is a very light, vivid blue with the hex code #f0f8ff, or rgb(240, 248, 255). In HSL it sits at a hue of 208°, 100% saturation and 97% lightness. It is one of the 148 named colors every browser understands, so you can write color: aliceblue; instead of the hex value.
Using Alice Blue for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Alice Blue text on white | 1.07 : 1 | fails |
| Alice Blue text on black | 19.58 : 1 | AAA |
On a alice blue background, use black text (19.58 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.
CSS
.element {
color: aliceblue; /* or #f0f8ff */
background-color: #f0f8ff;
border: 1px solid rgb(240 248 255 / 50%);
}
Similar named colors
Azure (#f0ffff), Ghost White (#f8f8ff), Mint Cream (#f5fffa), White Smoke (#f5f5f5), Snow (#fffafa), Honey Dew (#f0fff0).