Skip to content

#2f4fee

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

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

Every format

HEX#2f4fee
RGBrgb(47, 79, 238)
HSLhsl(230, 85%, 56%)
CMYKcmyk(80%, 67%, 0%, 7%)
LABlab(41.8 45.3 -82.5)
LCHlch(41.8 94.1 298.8)
OKLCHoklch(0.516 0.239 267.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4fee on white: 6.05:1
AA ✓ pass · AA-large · AAA
Aa
#2f4fee on black: 3.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green31.0%
Blue93.3%

CMYK percentages

Cyan80.3%
Magenta66.8%
Yellow0.0%
Key (black)6.7%

Color previews

#2f4fee text on a black background

contrast 3.47:1

Card sample

#2f4fee text on a white background

contrast 6.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f4fee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4fee in the Color Lab