Skip to content

#2d093f

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

RGB
45, 9, 63
HSL
280°, 75%, 14%
CMYK
29, 86, 0, 75
Luminance
0.0111

Every format

HEX#2d093f
RGBrgb(45, 9, 63)
HSLhsl(280, 75%, 14%)
CMYKcmyk(29%, 86%, 0%, 75%)
LABlab(9.9 28.2 -26.0)
LCHlch(9.9 38.4 317.3)
OKLCHoklch(0.236 0.098 311.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d093f on white: 17.18:1
AA ✓ pass · AA-large · AAA
Aa
#2d093f on black: 1.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green3.5%
Blue24.7%

CMYK percentages

Cyan28.6%
Magenta85.7%
Yellow0.0%
Key (black)75.3%

Color previews

#2d093f text on a black background

contrast 1.22:1

Card sample

#2d093f text on a white background

contrast 17.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d093f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d093f in the Color Lab