Skip to content

#2f1cef

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

RGB
47, 28, 239
HSL
245°, 87%, 52%
CMYK
80, 88, 0, 6
Luminance
0.0767

Every format

HEX#2f1cef
RGBrgb(47, 28, 239)
HSLhsl(245, 87%, 52%)
CMYKcmyk(80%, 88%, 0%, 6%)
LABlab(33.3 70.2 -97.2)
LCHlch(33.3 119.9 305.8)
OKLCHoklch(0.456 0.281 270.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f1cef on white: 8.29:1
AA ✓ pass · AA-large · AAA
Aa
#2f1cef on black: 2.53:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green11.0%
Blue93.7%

CMYK percentages

Cyan80.3%
Magenta88.3%
Yellow0.0%
Key (black)6.3%

Color previews

#2f1cef text on a black background

contrast 2.53:1

Card sample

#2f1cef text on a white background

contrast 8.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f1cef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f1cef in the Color Lab