Skip to content

#1c4fdf

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

RGB
28, 79, 223
HSL
224°, 78%, 49%
CMYK
87, 65, 0, 13
Luminance
0.1117

Every format

HEX#1c4fdf
RGBrgb(28, 79, 223)
HSLhsl(224, 78%, 49%)
CMYKcmyk(87%, 65%, 0%, 13%)
LABlab(39.9 38.7 -77.2)
LCHlch(39.9 86.3 296.6)
OKLCHoklch(0.496 0.225 264.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1c4fdf on white: 6.49:1
AA ✓ pass · AA-large · AAA
Aa
#1c4fdf on black: 3.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red11.0%
Green31.0%
Blue87.5%

CMYK percentages

Cyan87.4%
Magenta64.6%
Yellow0.0%
Key (black)12.5%

Color previews

#1c4fdf text on a black background

contrast 3.23:1

Card sample

#1c4fdf text on a white background

contrast 6.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(28, 79, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(28, 79, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1c4fdf;
background: linear-gradient(135deg, #1c4fdf, #6B1CDF);

Monochromatic scale

Palettes built from #1c4fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1c4fdf in the Color Lab