CSS named color
AliceBlue #F0F8FF
AliceBlue (CSS keyword aliceblue) has the hex code #F0F8FF and the RGB value rgb(240, 248, 255): an off-white with a sky blue tint.
Alice blue is the pale blue associated with Alice Roosevelt Longworth, daughter of Theodore Roosevelt, whose favorite gown color made it a fashion name in the 1900s. As a web color it is almost white, useful as a cool page or table-row background.
Color codes for AliceBlue
| CSS keyword | aliceblue |
|---|---|
| HEX | #F0F8FF |
| RGB | rgb(240, 248, 255) |
| HSL | hsl(208, 100%, 97%) |
| HWB | hwb(208 94% 0%) |
| OKLCH | oklch(97.5% 0.013 244.3) |
| CMYK (naive, no ICC profile) | cmyk(6%, 3%, 0%, 0%) |
| Decimal | 15,792,383 |
| Hue family | Whites and off-whites |
Contrast and accessibility
On aliceblue, black text has a contrast ratio of 19.57:1 and passes AAA at any text size; white text reaches 1.07:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on aliceblue | 19.57:1 | Pass | Pass | Pass | Pass | 101.2 |
| White text on aliceblue | 1.07:1 | Fail | Fail | Fail | Fail | 0.0 |
| Aliceblue text on white | 1.07:1 | Fail | Fail | Fail | Fail | 0.0 |
| Aliceblue text on black | 19.57:1 | Pass | Pass | Pass | Pass | −102.5 |
Tints and shades
Each step mixes aliceblue with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, aliceblue, white 25%) in CSS.
Tints (mixed with white)
- 5%
#f1f8ff - 15%
#f2f9ff - 25%
#f4faff - 35%
#f5faff - 45%
#f7fbff - 55%
#f8fcff - 65%
#fafdff - 75%
#fbfdff - 85%
#fdfeff - 95%
#feffff
Shades (mixed with black)
- 5%
#e4ecf2 - 15%
#ccd3d9 - 25%
#b4babf - 35%
#9ca1a6 - 45%
#84888c - 55%
#6c7073 - 65%
#545759 - 75%
#3c3e40 - 85%
#242526 - 95%
#0c0c0d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, aliceblue's complementary color is #FDF5EE (close to seashell), its analogous colors are #EEF9FC and #F4F6FF, and its triadic partners are #FFF3F6 and #F5F8EF. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #fdf5ee |
| Analogous | −30°, +30° | #eef9fc#f4f6ff |
| Triadic | +120°, +240° | #fff3f6#f5f8ef |
| Split-complementary | +150°, +210° | #fff4f1#f9f7ee |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
AliceBlue is close to neutral: its OKLCH chroma is only 0.013, so its temperature comes from context. The faint 208° hue gives it a slightly cool cast.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Nearest CSS named colors
| Color | HEX | ΔE OK |
|---|---|---|
| ghostwhite | #f8f8ff | 1.0 |
| whitesmoke | #f5f5f5 | 1.4 |
| azure | #f0ffff | 1.8 |
Code snippets
.element {
color: aliceblue;
background-color: #f0f8ff;
border-color: rgb(240 248 255);
outline-color: oklch(97.5% 0.013 244.3);
}<div class="bg-[#f0f8ff] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-aliceblue: #f0f8ff;
}
/* then use bg-aliceblue, text-aliceblue, border-aliceblue */import SwiftUI
extension Color {
static let aliceblue = Color(red: 0.941, green: 0.973, blue: 1.000)
}import androidx.compose.ui.graphics.Color
val Aliceblue = Color(0xFFF0F8FF)import 'package:flutter/material.dart';
const aliceblue = Color(0xFFF0F8FF);<!-- res/values/colors.xml -->
<color name="aliceblue">#F0F8FF</color>Frequently asked questions
- What is the hex code for aliceblue?
- The hex code for aliceblue is #F0F8FF. The same color is rgb(240, 248, 255), hsl(208, 100%, 97%) and oklch(97.5% 0.013 244.3), and in CSS you can also write the keyword aliceblue directly.
- Is aliceblue a warm or cool color?
- AliceBlue is close to neutral: its OKLCH chroma is only 0.013, so its temperature comes from context. The faint 208° hue gives it a slightly cool cast.
- What colors go with aliceblue?
- Rotating the hue in OKLCH while keeping lightness and chroma, aliceblue's complementary color is #FDF5EE (close to seashell), its analogous colors are #EEF9FC and #F4F6FF, and its triadic partners are #FFF3F6 and #F5F8EF. For text on top, black gives the higher contrast.
- Can you use white text on aliceblue?
- White text on aliceblue has a contrast ratio of 1.07:1, which fails AA even for large text under WCAG 2.2. Black text reaches 19.57:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 101.2 for black.
- What is the RGB value of aliceblue?
- AliceBlue is rgb(240, 248, 255): red 240, green 248 and blue 255 on the 0 to 255 scale, or 94.1%, 97.3% and 100.0%. As a decimal integer it is 15792383.
Last reviewed by Arielton Oberek.