Alice Blue Hex Code #F0F8FF
Alice Blue is a very light off-white with the hex code #F0F8FF. In RGB it is 240, 248, 255, and in HSL it is 208°, 100%, 97%. It is one of the 148 named colors in CSS, so you can write “aliceblue” instead of the hex code.
- HEX
- #F0F8FF
- RGB
- rgb(240, 248, 255)
- HSL
- hsl(208, 100%, 97%)
- HSV
- hsv(208°, 6%, 100%)
- CMYK
- cmyk(6%, 3%, 0%, 0%)
- CSS name
- aliceblue
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Alice Blue
On a white background Alice Blue has a contrast ratio of 1.07:1 (Fail), and on black 19.58:1 (AAA). Black text is the better choice on top of it.
It has almost no hue of its own, so it pairs comfortably with almost any accent color.
Near-white colors work well as backgrounds and surfaces. Their slight tint feels softer than pure white, which can look harsh across a large screen.
Shades and tints of Alice Blue
Tints mix Alice Blue with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Pairing Alice Blue with an accent color
Alice Blue has almost no hue of its own, so color schemes built from it would all look the same. A neutral works best as a background or text color beside an accent. This is how six accent colors contrast with Alice Blue.
- Crimson #DC143C 4.65:1 against Alice Blue (WCAG AA)
- Dark Orange #FF8C00 2.17:1 against Alice Blue (WCAG Fail)
- Gold #FFD700 1.31:1 against Alice Blue (WCAG Fail)
- Sea Green #2E8B57 3.96:1 against Alice Blue (WCAG AA Large)
- Royal Blue #4169E1 4.52:1 against Alice Blue (WCAG AA)
- Dark Orchid #9932CC 5.32:1 against Alice Blue (WCAG AA)
Alice Blue contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Alice Blue scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 1.07:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 19.58:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
Alice Blue and color blindness
These are approximate previews of how Alice Blue can look with the main types of color vision deficiency.
Alice Blue looks almost the same.
Alice Blue looks almost the same.
Alice Blue looks almost the same.
Alice Blue looks almost the same.
Gradients with Alice Blue
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Alice Blue to a lighter tint
background: linear-gradient(135deg, #f0f8ff 0%, #f9fcff 100%); Alice Blue to a darker shade
background: linear-gradient(135deg, #f0f8ff 0%, #606366 100%); Alice Blue to Dark Orchid
background: linear-gradient(135deg, #f0f8ff 0%, #9932cc 100%); Colors similar to Alice Blue
How each close match differs from Alice Blue.
- Ghost White #F8F8FF Very close in lightness, saturation and hue.
- White Smoke #F5F5F5 Very close in lightness, saturation and hue.
- Azure #F0FFFF Very close in lightness, saturation and hue.
- White #FFFFFF Very close in lightness, saturation and hue.
- Snow #FFFAFA Very close in lightness, saturation and hue.
- Mint Cream #F5FFFA Very close in lightness, saturation and hue.
Use Alice Blue in code
.element {
color: #f0f8ff;
background-color: #f0f8ff;
border-color: aliceblue; /* aliceblue is a valid CSS color name */
} :root {
--color-alice-blue: #f0f8ff;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#f0f8ff] text-[#f0f8ff] border-[#f0f8ff]"></div>
/* Tailwind v4 theme color */
@theme {
--color-alice-blue: #f0f8ff;
} Alice Blue questions
What is the hex code for Alice Blue?
The hex code for Alice Blue is #F0F8FF. In RGB that is rgb(240, 248, 255), and in HSL it is hsl(208, 100%, 97%).
Which colors go well with Alice Blue?
Alice Blue is a neutral color with almost no hue of its own, so it has no true complement and pairs with nearly any accent. The accents that contrast most strongly against it are Dark Orchid (5.32:1), Crimson (4.65:1), Royal Blue (4.52:1).
Should I use white or black text on Alice Blue?
Black text. It has a contrast ratio of 19.58:1 against Alice Blue, which is WCAG AAA. The other option scores 1.07:1.
Is Alice Blue accessible as a text color on white?
No. Alice Blue on white scores 1.07:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of Alice Blue?
Mixing Alice Blue with black gives #C0C6CC, #909599, #606366, #303233 (20% to 80% black). Mixing it with white gives #F3F9FF, #F6FBFF, #F9FCFF, #FCFEFF (20% to 80% white).