Skip to content

#2d034d

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

RGB
45, 3, 77
HSL
274°, 93%, 16%
CMYK
42, 96, 0, 70
Luminance
0.0116

Every format

HEX#2d034d
RGBrgb(45, 3, 77)
HSLhsl(274, 93%, 16%)
CMYKcmyk(42%, 96%, 0%, 70%)
LABlab(10.3 34.6 -35.3)
LCHlch(10.3 49.4 314.5)
OKLCHoklch(0.242 0.121 303.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d034d on white: 17.05:1
AA ✓ pass · AA-large · AAA
Aa
#2d034d on black: 1.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green1.2%
Blue30.2%

CMYK percentages

Cyan41.6%
Magenta96.1%
Yellow0.0%
Key (black)69.8%

Color previews

#2d034d text on a black background

contrast 1.23:1

Card sample

#2d034d text on a white background

contrast 17.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d034d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d034d in the Color Lab