#f0f4ff
a pale, electric blue · cool · closest name: lavender
RGB
240, 244, 255
HSL
224°, 100%, 97%
CMYK
6, 4, 0, 0
Luminance
0.9045
Every format
| HEX | #f0f4ff |
| RGB | rgb(240, 244, 255) |
| HSL | hsl(224, 100%, 97%) |
| CMYK | cmyk(6%, 4%, 0%, 0%) |
| LAB | lab(96.2 0.7 -5.7) |
| LCH | lch(96.2 5.8 276.9) |
| OKLCH | oklch(0.967 0.015 270.0) |
Copy-ready code
/* CSS */
color: #f0f4ff;
background-color: #f0f4ff;
/* Tailwind (arbitrary) */
class="text-[#f0f4ff] bg-[#f0f4ff]"
/* SCSS */
$brand: #f0f4ff;
/* SwiftUI */
Color(red: 0.941, green: 0.957, blue: 1.000)
/* Android */
Color.parseColor("#f0f4ff")Accessibility — WCAG contrast
Aa
#f0f4ff on white: 1.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0f4ff on black: 19.09:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green95.7%
Blue100.0%
CMYK percentages
Cyan5.9%
Magenta4.3%
Yellow0.0%
Key (black)0.0%
Color previews
#f0f4ff text on a black background
contrast 19.09:1
Card sample
#f0f4ff text on a white background
contrast 1.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0f4ff;
Background color
Panel with #f0f4ff background
background-color: #f0f4ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0f4ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 244, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 244, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0f4ff; background: linear-gradient(135deg, #f0f4ff, #F6F0FF);