Skip to content

#2d2eaf

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

RGB
45, 46, 175
HSL
240°, 59%, 43%
CMYK
74, 74, 0, 31
Luminance
0.0561

Every format

HEX#2d2eaf
RGBrgb(45, 46, 175)
HSLhsl(240, 59%, 43%)
CMYKcmyk(74%, 74%, 0%, 31%)
LABlab(28.4 43.0 -68.0)
LCHlch(28.4 80.5 302.3)
OKLCHoklch(0.401 0.197 272.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d2eaf on white: 9.90:1
AA ✓ pass · AA-large · AAA
Aa
#2d2eaf on black: 2.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green18.0%
Blue68.6%

CMYK percentages

Cyan74.3%
Magenta73.7%
Yellow0.0%
Key (black)31.4%

Color previews

#2d2eaf text on a black background

contrast 2.12:1

Card sample

#2d2eaf text on a white background

contrast 9.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d2eaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d2eaf in the Color Lab