Skip to content

#4030df

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

RGB
64, 48, 223
HSL
246°, 73%, 53%
CMYK
71, 79, 0, 13
Luminance
0.0853

Every format

HEX#4030df
RGBrgb(64, 48, 223)
HSLhsl(246, 73%, 53%)
CMYKcmyk(71%, 79%, 0%, 13%)
LABlab(35.1 58.8 -85.0)
LCHlch(35.1 103.4 304.6)
OKLCHoklch(0.466 0.247 275.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4030df on white: 7.76:1
AA ✓ pass · AA-large · AAA
Aa
#4030df on black: 2.71:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green18.8%
Blue87.5%

CMYK percentages

Cyan71.3%
Magenta78.5%
Yellow0.0%
Key (black)12.5%

Color previews

#4030df text on a black background

contrast 2.71:1

Card sample

#4030df text on a white background

contrast 7.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4030df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4030df in the Color Lab