Skip to content

#2f0cdd

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

RGB
47, 12, 221
HSL
250°, 90%, 46%
CMYK
79, 95, 0, 13
Luminance
0.0609

Every format

HEX#2f0cdd
RGBrgb(47, 12, 221)
HSLhsl(250, 90%, 46%)
CMYKcmyk(79%, 95%, 0%, 13%)
LABlab(29.6 69.6 -93.0)
LCHlch(29.6 116.1 306.8)
OKLCHoklch(0.425 0.269 271.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f0cdd on white: 9.47:1
AA ✓ pass · AA-large · AAA
Aa
#2f0cdd on black: 2.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green4.7%
Blue86.7%

CMYK percentages

Cyan78.7%
Magenta94.6%
Yellow0.0%
Key (black)13.3%

Color previews

#2f0cdd text on a black background

contrast 2.22:1

Card sample

#2f0cdd text on a white background

contrast 9.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f0cdd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f0cdd in the Color Lab