Skip to content

#3d5fdf

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

RGB
61, 95, 223
HSL
227°, 72%, 56%
CMYK
73, 57, 0, 13
Luminance
0.1450

Every format

HEX#3d5fdf
RGBrgb(61, 95, 223)
HSLhsl(227, 72%, 56%)
CMYKcmyk(73%, 57%, 0%, 13%)
LABlab(44.9 31.4 -68.8)
LCHlch(44.9 75.6 294.5)
OKLCHoklch(0.537 0.199 267.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3d5fdf on white: 5.38:1
AA ✓ pass · AA-large · AAA
Aa
#3d5fdf on black: 3.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red23.9%
Green37.3%
Blue87.5%

CMYK percentages

Cyan72.6%
Magenta57.4%
Yellow0.0%
Key (black)12.5%

Color previews

#3d5fdf text on a black background

contrast 3.90:1

Card sample

#3d5fdf text on a white background

contrast 5.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #3d5fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #3d5fdf in the Color Lab