Skip to content

#f0f8ff

a pale, electric blue · cool · closest name: white

RGB
240, 248, 255
HSL
208°, 100%, 97%
CMYK
6, 3, 0, 0
Luminance
0.9288

Every format

HEX#f0f8ff
RGBrgb(240, 248, 255)
HSLhsl(208, 100%, 97%)
CMYKcmyk(6%, 3%, 0%, 0%)
LABlab(97.2 -1.4 -4.3)
LCHlch(97.2 4.5 252.4)
OKLCHoklch(0.975 0.013 244.3)

Copy-ready code

/* CSS */
color: #f0f8ff;
background-color: #f0f8ff;
/* Tailwind (arbitrary) */
class="text-[#f0f8ff] bg-[#f0f8ff]"
/* SCSS */
$brand: #f0f8ff;
/* SwiftUI */
Color(red: 0.941, green: 0.973, blue: 1.000)
/* Android */
Color.parseColor("#f0f8ff")

Accessibility — WCAG contrast

Aa
#f0f8ff on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#f0f8ff on black: 19.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green97.3%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta2.7%
Yellow0.0%
Key (black)0.0%

Color previews

#f0f8ff text on a black background

contrast 19.58:1

Card sample

#f0f8ff text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #f0f8ff;
Background color
Panel with #f0f8ff background
background-color: #f0f8ff;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #f0f8ff;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(240, 248, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 248, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0f8ff;
background: linear-gradient(135deg, #f0f8ff, #F2F0FF);

Monochromatic scale

Palettes built from #f0f8ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f8ff in the Color Lab