Skip to content

#f0f8fd

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

RGB
240, 248, 253
HSL
203°, 77%, 97%
CMYK
5, 2, 0, 1
Luminance
0.9275

Every format

HEX#f0f8fd
RGBrgb(240, 248, 253)
HSLhsl(203, 77%, 97%)
CMYKcmyk(5%, 2%, 0%, 1%)
LABlab(97.1 -1.7 -3.3)
LCHlch(97.1 3.7 242.5)
OKLCHoklch(0.975 0.011 234.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green97.3%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta2.0%
Yellow0.0%
Key (black)0.8%

Color previews

#f0f8fd text on a black background

contrast 19.55:1

Card sample

#f0f8fd text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f8fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f8fd in the Color Lab