Skip to content

#4100f2

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

RGB
65, 0, 242
HSL
256°, 100%, 48%
CMYK
73, 100, 0, 5
Luminance
0.0753

Every format

HEX#4100f2
RGBrgb(65, 0, 242)
HSLhsl(256, 100%, 48%)
CMYKcmyk(73%, 100%, 0%, 5%)
LABlab(33.0 77.0 -99.3)
LCHlch(33.0 125.7 307.8)
OKLCHoklch(0.459 0.288 275.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4100f2 on white: 8.38:1
AA ✓ pass · AA-large · AAA
Aa
#4100f2 on black: 2.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.5%
Green0.0%
Blue94.9%

CMYK percentages

Cyan73.1%
Magenta100.0%
Yellow0.0%
Key (black)5.1%

Color previews

#4100f2 text on a black background

contrast 2.51:1

Card sample

#4100f2 text on a white background

contrast 8.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4100f2;
Background color
Panel with #4100f2 background
background-color: #4100f2;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(65, 0, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(65, 0, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4100f2;
background: linear-gradient(135deg, #4100f2, #E300F2);

Monochromatic scale

Palettes built from #4100f2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4100f2 in the Color Lab