Skip to content

#2f20af

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

RGB
47, 32, 175
HSL
246°, 69%, 41%
CMYK
73, 82, 0, 31
Luminance
0.0473

Every format

HEX#2f20af
RGBrgb(47, 32, 175)
HSLhsl(246, 69%, 41%)
CMYKcmyk(73%, 82%, 0%, 31%)
LABlab(26.0 50.6 -72.0)
LCHlch(26.0 88.0 305.1)
OKLCHoklch(0.384 0.209 274.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f20af on white: 10.79:1
AA ✓ pass · AA-large · AAA
Aa
#2f20af on black: 1.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green12.5%
Blue68.6%

CMYK percentages

Cyan73.1%
Magenta81.7%
Yellow0.0%
Key (black)31.4%

Color previews

#2f20af text on a black background

contrast 1.95:1

Card sample

#2f20af text on a white background

contrast 10.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f20af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f20af in the Color Lab