Skip to content

#2f4eee

a balanced, electric blue · warm · closest name: royalblue

RGB
47, 78, 238
HSL
230°, 85%, 56%
CMYK
80, 67, 0, 7
Luminance
0.1223

Every format

HEX#2f4eee
RGBrgb(47, 78, 238)
HSLhsl(230, 85%, 56%)
CMYKcmyk(80%, 67%, 0%, 7%)
LABlab(41.6 45.9 -82.9)
LCHlch(41.6 94.7 299.0)
OKLCHoklch(0.515 0.240 267.6)

Copy-ready code

/* CSS */
color: #2f4eee;
background-color: #2f4eee;
/* Tailwind (arbitrary) */
class="text-[#2f4eee] bg-[#2f4eee]"
/* SCSS */
$brand: #2f4eee;
/* SwiftUI */
Color(red: 0.184, green: 0.306, blue: 0.933)
/* Android */
Color.parseColor("#2f4eee")

Accessibility — WCAG contrast

Aa
#2f4eee on white: 6.10:1
AA ✓ pass · AA-large · AAA
Aa
#2f4eee on black: 3.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green30.6%
Blue93.3%

CMYK percentages

Cyan80.3%
Magenta67.2%
Yellow0.0%
Key (black)6.7%

Color previews

#2f4eee text on a black background

contrast 3.45:1

Card sample

#2f4eee text on a white background

contrast 6.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 78, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 78, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4eee;
background: linear-gradient(135deg, #2f4eee, #8F2FEE);

Monochromatic scale

Palettes built from #2f4eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4eee in the Color Lab