Skip to content

#2020a0

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

RGB
32, 32, 160
HSL
240°, 67%, 38%
CMYK
80, 80, 0, 37
Luminance
0.0388

Every format

HEX#2020a0
RGBrgb(32, 32, 160)
HSLhsl(240, 67%, 38%)
CMYKcmyk(80%, 80%, 0%, 37%)
LABlab(23.3 44.8 -67.5)
LCHlch(23.3 81.0 303.6)
OKLCHoklch(0.358 0.195 270.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2020a0 on white: 11.83:1
AA ✓ pass · AA-large · AAA
Aa
#2020a0 on black: 1.78:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.5%
Green12.5%
Blue62.7%

CMYK percentages

Cyan80.0%
Magenta80.0%
Yellow0.0%
Key (black)37.3%

Color previews

#2020a0 text on a black background

contrast 1.78:1

Card sample

#2020a0 text on a white background

contrast 11.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2020a0;
Background color
Panel with #2020a0 background
background-color: #2020a0;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #2020a0;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(32, 32, 160, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(32, 32, 160, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2020a0;
background: linear-gradient(135deg, #2020a0, #7520A0);

Monochromatic scale

Palettes built from #2020a0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2020a0 in the Color Lab