Skip to content

#2f2aa2

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

RGB
47, 42, 162
HSL
243°, 59%, 40%
CMYK
71, 74, 0, 37
Luminance
0.0487

Every format

HEX#2f2aa2
RGBrgb(47, 42, 162)
HSLhsl(243, 59%, 40%)
CMYKcmyk(71%, 74%, 0%, 37%)
LABlab(26.4 41.2 -63.5)
LCHlch(26.4 75.7 303.0)
OKLCHoklch(0.383 0.184 275.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2aa2 on white: 10.64:1
AA ✓ pass · AA-large · AAA
Aa
#2f2aa2 on black: 1.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green16.5%
Blue63.5%

CMYK percentages

Cyan71.0%
Magenta74.1%
Yellow0.0%
Key (black)36.5%

Color previews

#2f2aa2 text on a black background

contrast 1.97:1

Card sample

#2f2aa2 text on a white background

contrast 10.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2aa2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2aa2 in the Color Lab