Skip to content

#1d2ab0

a dark, vivid blue · warm · closest name: navy

RGB
29, 42, 176
HSL
235°, 72%, 40%
CMYK
84, 76, 0, 31
Luminance
0.0505

Every format

HEX#1d2ab0
RGBrgb(29, 42, 176)
HSLhsl(235, 72%, 40%)
CMYKcmyk(84%, 76%, 0%, 31%)
LABlab(26.9 44.5 -71.2)
LCHlch(26.9 83.9 302.0)
OKLCHoklch(0.388 0.206 268.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1d2ab0 on white: 10.45:1
AA ✓ pass · AA-large · AAA
Aa
#1d2ab0 on black: 2.01:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red11.4%
Green16.5%
Blue69.0%

CMYK percentages

Cyan83.5%
Magenta76.1%
Yellow0.0%
Key (black)31.0%

Color previews

#1d2ab0 text on a black background

contrast 2.01:1

Card sample

#1d2ab0 text on a white background

contrast 10.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(29, 42, 176, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(29, 42, 176, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1d2ab0;
background: linear-gradient(135deg, #1d2ab0, #721DB0);

Monochromatic scale

Palettes built from #1d2ab0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1d2ab0 in the Color Lab