Skip to content

#2d2abd

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

RGB
45, 42, 189
HSL
241°, 64%, 45%
CMYK
76, 78, 0, 26
Luminance
0.0589

Every format

HEX#2d2abd
RGBrgb(45, 42, 189)
HSLhsl(241, 64%, 45%)
CMYKcmyk(76%, 78%, 0%, 26%)
LABlab(29.1 49.8 -75.1)
LCHlch(29.1 90.2 303.6)
OKLCHoklch(0.410 0.218 272.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d2abd on white: 9.64:1
AA ✓ pass · AA-large · AAA
Aa
#2d2abd on black: 2.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green16.5%
Blue74.1%

CMYK percentages

Cyan76.2%
Magenta77.8%
Yellow0.0%
Key (black)25.9%

Color previews

#2d2abd text on a black background

contrast 2.18:1

Card sample

#2d2abd text on a white background

contrast 9.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 42, 189, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 42, 189, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d2abd;
background: linear-gradient(135deg, #2d2abd, #8F2ABD);

Monochromatic scale

Palettes built from #2d2abd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d2abd in the Color Lab