Skip to content

#1f53cc

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

RGB
31, 83, 204
HSL
222°, 74%, 46%
CMYK
85, 59, 0, 20
Luminance
0.1084

Every format

HEX#1f53cc
RGBrgb(31, 83, 204)
HSLhsl(222, 74%, 46%)
CMYKcmyk(85%, 59%, 0%, 20%)
LABlab(39.3 29.1 -67.2)
LCHlch(39.3 73.2 293.4)
OKLCHoklch(0.487 0.196 263.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f53cc on white: 6.63:1
AA ✓ pass · AA-large · AAA
Aa
#1f53cc on black: 3.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.2%
Green32.5%
Blue80.0%

CMYK percentages

Cyan84.8%
Magenta59.3%
Yellow0.0%
Key (black)20.0%

Color previews

#1f53cc text on a black background

contrast 3.17:1

Card sample

#1f53cc text on a white background

contrast 6.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(31, 83, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 83, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f53cc;
background: linear-gradient(135deg, #1f53cc, #5E1FCC);

Monochromatic scale

Palettes built from #1f53cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1f53cc in the Color Lab