Skip to content

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.

AliceBlue#F0F8FF

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

Color codes for AliceBlue
CSS keywordaliceblue
HEX#F0F8FF
RGBrgb(240, 248, 255)
HSLhsl(208, 100%, 97%)
HWBhwb(208 94% 0%)
OKLCHoklch(97.5% 0.013 244.3)
CMYK (naive, no ICC profile)cmyk(6%, 3%, 0%, 0%)
Decimal15,792,383
Hue familyWhites 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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on aliceblue19.57:1PassPassPassPass101.2
White text on aliceblue1.07:1FailFailFailFail0.0
Aliceblue text on white1.07:1FailFailFailFail0.0
Aliceblue text on black19.57:1PassPassPassPass−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)

  1. 5%
    #f1f8ff
  2. 15%
    #f2f9ff
  3. 25%
    #f4faff
  4. 35%
    #f5faff
  5. 45%
    #f7fbff
  6. 55%
    #f8fcff
  7. 65%
    #fafdff
  8. 75%
    #fbfdff
  9. 85%
    #fdfeff
  10. 95%
    #feffff

Shades (mixed with black)

  1. 5%
    #e4ecf2
  2. 15%
    #ccd3d9
  3. 25%
    #b4babf
  4. 35%
    #9ca1a6
  5. 45%
    #84888c
  6. 55%
    #6c7073
  7. 65%
    #545759
  8. 75%
    #3c3e40
  9. 85%
    #242526
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
ghostwhite#f8f8ff1.0
whitesmoke#f5f5f51.4
azure#f0ffff1.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
sky-50#f0f9ff0.3
blue-50#eff6ff0.6
slate-100#f1f5f90.9

Code snippets

CSS
.element {
  color: aliceblue;
  background-color: #f0f8ff;
  border-color: rgb(240 248 255);
  outline-color: oklch(97.5% 0.013 244.3);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let aliceblue = Color(red: 0.941, green: 0.973, blue: 1.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Aliceblue = Color(0xFFF0F8FF)
Flutter
import 'package:flutter/material.dart';

const aliceblue = Color(0xFFF0F8FF);
Android XML
<!-- 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.