Skip to content

#4102df

a dark, electric violet · warm · closest name: blue

RGB
65, 2, 223
HSL
257°, 98%, 44%
CMYK
71, 99, 0, 13
Luminance
0.0649

Every format

HEX#4102df
RGBrgb(65, 2, 223)
HSLhsl(257, 98%, 44%)
CMYKcmyk(71%, 99%, 0%, 13%)
LABlab(30.6 72.3 -92.4)
LCHlch(30.6 117.3 308.0)
OKLCHoklch(0.436 0.269 277.1)

Copy-ready code

/* CSS */
color: #4102df;
background-color: #4102df;
/* Tailwind (arbitrary) */
class="text-[#4102df] bg-[#4102df]"
/* SCSS */
$brand: #4102df;
/* SwiftUI */
Color(red: 0.255, green: 0.008, blue: 0.875)
/* Android */
Color.parseColor("#4102df")

Accessibility — WCAG contrast

Aa
#4102df on white: 9.13:1
AA ✓ pass · AA-large · AAA
Aa
#4102df on black: 2.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.5%
Green0.8%
Blue87.5%

CMYK percentages

Cyan70.9%
Magenta99.1%
Yellow0.0%
Key (black)12.5%

Color previews

#4102df text on a black background

contrast 2.30:1

Card sample

#4102df text on a white background

contrast 9.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4102df;
Background color
Panel with #4102df background
background-color: #4102df;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(65, 2, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(65, 2, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4102df;
background: linear-gradient(135deg, #4102df, #D402DF);

Monochromatic scale

Palettes built from #4102df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4102df in the Color Lab