Skip to content

#2c2c5f

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

RGB
44, 44, 95
HSL
240°, 37%, 27%
CMYK
54, 54, 0, 63
Luminance
0.0316

Every format

HEX#2c2c5f
RGBrgb(44, 44, 95)
HSLhsl(240, 37%, 27%)
CMYKcmyk(54%, 54%, 0%, 63%)
LABlab(20.7 15.9 -30.5)
LCHlch(20.7 34.4 297.5)
OKLCHoklch(0.323 0.088 280.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c2c5f on white: 12.86:1
AA ✓ pass · AA-large · AAA
Aa
#2c2c5f on black: 1.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan53.7%
Magenta53.7%
Yellow0.0%
Key (black)62.7%

Color previews

#2c2c5f text on a black background

contrast 1.63:1

Card sample

#2c2c5f text on a white background

contrast 12.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c2c5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c2c5f in the Color Lab