Skip to content

#2c20af

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

RGB
44, 32, 175
HSL
245°, 69%, 41%
CMYK
75, 82, 0, 31
Luminance
0.0466

Every format

HEX#2c20af
RGBrgb(44, 32, 175)
HSLhsl(245, 69%, 41%)
CMYKcmyk(75%, 82%, 0%, 31%)
LABlab(25.8 50.4 -72.4)
LCHlch(25.8 88.2 304.8)
OKLCHoklch(0.382 0.210 273.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c20af on white: 10.87:1
AA ✓ pass · AA-large · AAA
Aa
#2c20af on black: 1.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green12.5%
Blue68.6%

CMYK percentages

Cyan74.9%
Magenta81.7%
Yellow0.0%
Key (black)31.4%

Color previews

#2c20af text on a black background

contrast 1.93:1

Card sample

#2c20af text on a white background

contrast 10.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2c20af;
Background color
Panel with #2c20af background
background-color: #2c20af;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 32, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 32, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c20af;
background: linear-gradient(135deg, #2c20af, #8B20AF);

Monochromatic scale

Palettes built from #2c20af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c20af in the Color Lab