Skip to content

#1b50a0

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

RGB
27, 80, 160
HSL
216°, 71%, 37%
CMYK
83, 50, 0, 37
Luminance
0.0851

Every format

HEX#1b50a0
RGBrgb(27, 80, 160)
HSLhsl(216, 71%, 37%)
CMYKcmyk(83%, 50%, 0%, 37%)
LABlab(35.0 13.5 -48.2)
LCHlch(35.0 50.1 285.6)
OKLCHoklch(0.444 0.141 259.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1b50a0 on white: 7.77:1
AA ✓ pass · AA-large · AAA
Aa
#1b50a0 on black: 2.70:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red10.6%
Green31.4%
Blue62.7%

CMYK percentages

Cyan83.1%
Magenta50.0%
Yellow0.0%
Key (black)37.3%

Color previews

#1b50a0 text on a black background

contrast 2.70:1

Card sample

#1b50a0 text on a white background

contrast 7.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(27, 80, 160, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(27, 80, 160, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1b50a0;
background: linear-gradient(135deg, #1b50a0, #3F1BA0);

Monochromatic scale

Palettes built from #1b50a0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1b50a0 in the Color Lab