Skip to content

#f0f2fe

a pale, electric blue · warm · closest name: lavender

RGB
240, 242, 254
HSL
231°, 88%, 97%
CMYK
6, 5, 0, 0
Luminance
0.8919

Every format

HEX#f0f2fe
RGBrgb(240, 242, 254)
HSLhsl(231, 88%, 97%)
CMYKcmyk(6%, 5%, 0%, 0%)
LABlab(95.7 1.5 -6.0)
LCHlch(95.7 6.2 284.2)
OKLCHoklch(0.963 0.016 278.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0f2fe on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#f0f2fe on black: 18.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green94.9%
Blue99.6%

CMYK percentages

Cyan5.5%
Magenta4.7%
Yellow0.0%
Key (black)0.4%

Color previews

#f0f2fe text on a black background

contrast 18.84:1

Card sample

#f0f2fe text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f2fe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f2fe in the Color Lab