Free Accessible CSS Gradient Generator

← All Colors
#F0F8FF Alice Blue

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.

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.

Contrast of Alice Blue with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 1.07:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 19.58:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Alice Blue1.07:1
Aa Black text on Alice Blue19.58:1

Alice Blue and color blindness

These are approximate previews of how Alice Blue can look with the main types of color vision deficiency.

Protanopia #F5F8FF

Alice Blue looks almost the same.

Deuteranopia #F3F6FF

Alice Blue looks almost the same.

Tritanopia #EDFAFA

Alice Blue looks almost the same.

Achromatopsia #F7F7F7

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.

More white & cream colors →

Use Alice Blue in code

CSS
.element {
  color: #f0f8ff;
  background-color: #f0f8ff;
  border-color: aliceblue;   /* aliceblue is a valid CSS color name */
}
CSS variable
:root {
  --color-alice-blue: #f0f8ff;
}
Tailwind
<!-- 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).

More color tools