Skip to content

#2c2f5d

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

RGB
44, 47, 93
HSL
236°, 36%, 27%
CMYK
53, 50, 0, 64
Luminance
0.0336

Every format

HEX#2c2f5d
RGBrgb(44, 47, 93)
HSLhsl(236, 36%, 27%)
CMYKcmyk(53%, 50%, 0%, 64%)
LABlab(21.4 13.0 -28.0)
LCHlch(21.4 30.9 295.0)
OKLCHoklch(0.328 0.080 278.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c2f5d on white: 12.56:1
AA ✓ pass · AA-large · AAA
Aa
#2c2f5d on black: 1.67:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green18.4%
Blue36.5%

CMYK percentages

Cyan52.7%
Magenta49.5%
Yellow0.0%
Key (black)63.5%

Color previews

#2c2f5d text on a black background

contrast 1.67:1

Card sample

#2c2f5d text on a white background

contrast 12.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c2f5d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c2f5d in the Color Lab