Skip to content

#2d2c5f

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

RGB
45, 44, 95
HSL
241°, 37%, 27%
CMYK
53, 54, 0, 63
Luminance
0.0319

Every format

HEX#2d2c5f
RGBrgb(45, 44, 95)
HSLhsl(241, 37%, 27%)
CMYKcmyk(53%, 54%, 0%, 63%)
LABlab(20.8 16.1 -30.4)
LCHlch(20.8 34.4 297.9)
OKLCHoklch(0.323 0.088 281.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d2c5f on white: 12.83:1
AA ✓ pass · AA-large · AAA
Aa
#2d2c5f on black: 1.64:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green17.3%
Blue37.3%

CMYK percentages

Cyan52.6%
Magenta53.7%
Yellow0.0%
Key (black)62.7%

Color previews

#2d2c5f text on a black background

contrast 1.64:1

Card sample

#2d2c5f text on a white background

contrast 12.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 44, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 44, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d2c5f;
background: linear-gradient(135deg, #2d2c5f, #4F2C5F);

Monochromatic scale

Palettes built from #2d2c5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d2c5f in the Color Lab