Skip to content

#2c3aa0

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

RGB
44, 58, 160
HSL
233°, 57%, 40%
CMYK
73, 64, 0, 37
Luminance
0.0610

Every format

HEX#2c3aa0
RGBrgb(44, 58, 160)
HSLhsl(233, 57%, 40%)
CMYKcmyk(73%, 64%, 0%, 37%)
LABlab(29.7 30.2 -56.9)
LCHlch(29.7 64.4 297.9)
OKLCHoklch(0.406 0.164 271.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c3aa0 on white: 9.46:1
AA ✓ pass · AA-large · AAA
Aa
#2c3aa0 on black: 2.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green22.7%
Blue62.7%

CMYK percentages

Cyan72.5%
Magenta63.8%
Yellow0.0%
Key (black)37.3%

Color previews

#2c3aa0 text on a black background

contrast 2.22:1

Card sample

#2c3aa0 text on a white background

contrast 9.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c3aa0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c3aa0 in the Color Lab