Skip to content

#2c0439

a deep, electric violet · warm · closest name: midnightblue

RGB
44, 4, 57
HSL
285°, 87%, 12%
CMYK
23, 93, 0, 78
Luminance
0.0092

Every format

HEX#2c0439
RGBrgb(44, 4, 57)
HSLhsl(285, 87%, 12%)
CMYKcmyk(23%, 93%, 0%, 78%)
LABlab(8.3 29.1 -24.3)
LCHlch(8.3 37.9 320.1)
OKLCHoklch(0.223 0.099 316.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c0439 on white: 17.74:1
AA ✓ pass · AA-large · AAA
Aa
#2c0439 on black: 1.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green1.6%
Blue22.4%

CMYK percentages

Cyan22.8%
Magenta93.0%
Yellow0.0%
Key (black)77.6%

Color previews

#2c0439 text on a black background

contrast 1.18:1

Card sample

#2c0439 text on a white background

contrast 17.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c0439

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c0439 in the Color Lab