Skip to content

#3f5fdf

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

RGB
63, 95, 223
HSL
228°, 71%, 56%
CMYK
72, 57, 0, 13
Luminance
0.1457

Every format

HEX#3f5fdf
RGBrgb(63, 95, 223)
HSLhsl(228, 71%, 56%)
CMYKcmyk(72%, 57%, 0%, 13%)
LABlab(45.0 31.6 -68.7)
LCHlch(45.0 75.6 294.7)
OKLCHoklch(0.538 0.198 268.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f5fdf on white: 5.37:1
AA ✓ pass · AA-large · AAA
Aa
#3f5fdf on black: 3.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red24.7%
Green37.3%
Blue87.5%

CMYK percentages

Cyan71.7%
Magenta57.4%
Yellow0.0%
Key (black)12.5%

Color previews

#3f5fdf text on a black background

contrast 3.91:1

Card sample

#3f5fdf text on a white background

contrast 5.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3f5fdf;
Background color
Panel with #3f5fdf background
background-color: #3f5fdf;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(63, 95, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(63, 95, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3f5fdf;
background: linear-gradient(135deg, #3f5fdf, #8A3FDF);

Monochromatic scale

Palettes built from #3f5fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #3f5fdf in the Color Lab