Skip to content

#2f3fef

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

RGB
47, 63, 239
HSL
235°, 86%, 56%
CMYK
80, 74, 0, 6
Luminance
0.1039

Every format

HEX#2f3fef
RGBrgb(47, 63, 239)
HSLhsl(235, 86%, 56%)
CMYKcmyk(80%, 74%, 0%, 6%)
LABlab(38.5 54.8 -88.4)
LCHlch(38.5 104.1 301.8)
OKLCHoklch(0.493 0.256 268.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f3fef on white: 6.82:1
AA ✓ pass · AA-large · AAA
Aa
#2f3fef on black: 3.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green24.7%
Blue93.7%

CMYK percentages

Cyan80.3%
Magenta73.6%
Yellow0.0%
Key (black)6.3%

Color previews

#2f3fef text on a black background

contrast 3.08:1

Card sample

#2f3fef text on a white background

contrast 6.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 63, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 63, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f3fef;
background: linear-gradient(135deg, #2f3fef, #9F2FEF);

Monochromatic scale

Palettes built from #2f3fef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f3fef in the Color Lab