Skip to content

#2c45af

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

RGB
44, 69, 175
HSL
229°, 60%, 43%
CMYK
75, 61, 0, 31
Luminance
0.0789

Every format

HEX#2c45af
RGBrgb(44, 69, 175)
HSLhsl(229, 60%, 43%)
CMYKcmyk(75%, 61%, 0%, 31%)
LABlab(33.7 28.5 -59.2)
LCHlch(33.7 65.8 295.7)
OKLCHoklch(0.440 0.171 268.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c45af on white: 8.15:1
AA ✓ pass · AA-large · AAA
Aa
#2c45af on black: 2.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green27.1%
Blue68.6%

CMYK percentages

Cyan74.9%
Magenta60.6%
Yellow0.0%
Key (black)31.4%

Color previews

#2c45af text on a black background

contrast 2.58:1

Card sample

#2c45af text on a white background

contrast 8.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c45af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c45af in the Color Lab