Skip to content

#1f65df

a balanced, electric blue · cool · closest name: royalblue

RGB
31, 101, 223
HSL
218°, 76%, 50%
CMYK
86, 55, 0, 13
Luminance
0.1493

Every format

HEX#1f65df
RGBrgb(31, 101, 223)
HSLhsl(218, 76%, 50%)
CMYKcmyk(86%, 55%, 0%, 13%)
LABlab(45.5 24.7 -67.9)
LCHlch(45.5 72.3 290.0)
OKLCHoklch(0.539 0.199 260.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f65df on white: 5.27:1
AA ✓ pass · AA-large · AAA
Aa
#1f65df on black: 3.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.2%
Green39.6%
Blue87.5%

CMYK percentages

Cyan86.1%
Magenta54.7%
Yellow0.0%
Key (black)12.5%

Color previews

#1f65df text on a black background

contrast 3.99:1

Card sample

#1f65df text on a white background

contrast 5.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1f65df;
Background color
Panel with #1f65df background
background-color: #1f65df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #1f65df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(31, 101, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 101, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f65df;
background: linear-gradient(135deg, #1f65df, #591FDF);

Monochromatic scale

Palettes built from #1f65df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1f65df in the Color Lab