Skip to content

#2d0cef

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

RGB
45, 12, 239
HSL
249°, 90%, 49%
CMYK
81, 95, 0, 6
Luminance
0.0705

Every format

HEX#2d0cef
RGBrgb(45, 12, 239)
HSLhsl(249, 90%, 49%)
CMYKcmyk(81%, 95%, 0%, 6%)
LABlab(31.9 74.0 -99.4)
LCHlch(31.9 123.9 306.7)
OKLCHoklch(0.447 0.287 270.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d0cef on white: 8.71:1
AA ✓ pass · AA-large · AAA
Aa
#2d0cef on black: 2.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green4.7%
Blue93.7%

CMYK percentages

Cyan81.2%
Magenta95.0%
Yellow0.0%
Key (black)6.3%

Color previews

#2d0cef text on a black background

contrast 2.41:1

Card sample

#2d0cef text on a white background

contrast 8.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d0cef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d0cef in the Color Lab