Skip to content

#4031ff

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

RGB
64, 49, 255
HSL
244°, 100%, 60%
CMYK
75, 81, 0, 0
Luminance
0.1051

Every format

HEX#4031ff
RGBrgb(64, 49, 255)
HSLhsl(244, 100%, 60%)
CMYKcmyk(75%, 81%, 0%, 0%)
LABlab(38.7 67.6 -97.1)
LCHlch(38.7 118.3 304.8)
OKLCHoklch(0.502 0.281 272.8)

Copy-ready code

/* CSS */
color: #4031ff;
background-color: #4031ff;
/* Tailwind (arbitrary) */
class="text-[#4031ff] bg-[#4031ff]"
/* SCSS */
$brand: #4031ff;
/* SwiftUI */
Color(red: 0.251, green: 0.192, blue: 1.000)
/* Android */
Color.parseColor("#4031ff")

Accessibility — WCAG contrast

Aa
#4031ff on white: 6.77:1
AA ✓ pass · AA-large · AAA
Aa
#4031ff on black: 3.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green19.2%
Blue100.0%

CMYK percentages

Cyan74.9%
Magenta80.8%
Yellow0.0%
Key (black)0.0%

Color previews

#4031ff text on a black background

contrast 3.10:1

Card sample

#4031ff text on a white background

contrast 6.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4031ff;
Background color
Panel with #4031ff background
background-color: #4031ff;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 49, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 49, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4031ff;
background: linear-gradient(135deg, #4031ff, #C931FF);

Monochromatic scale

Palettes built from #4031ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4031ff in the Color Lab