Skip to content

#2d136f

a dark, vivid violet · warm · closest name: midnightblue

RGB
45, 19, 111
HSL
257°, 71%, 26%
CMYK
60, 83, 0, 57
Luminance
0.0217

Every format

HEX#2d136f
RGBrgb(45, 19, 111)
HSLhsl(257, 71%, 26%)
CMYKcmyk(60%, 83%, 0%, 57%)
LABlab(16.4 37.0 -48.0)
LCHlch(16.4 60.7 307.6)
OKLCHoklch(0.296 0.144 286.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d136f on white: 14.64:1
AA ✓ pass · AA-large · AAA
Aa
#2d136f on black: 1.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green7.5%
Blue43.5%

CMYK percentages

Cyan59.5%
Magenta82.9%
Yellow0.0%
Key (black)56.5%

Color previews

#2d136f text on a black background

contrast 1.43:1

Card sample

#2d136f text on a white background

contrast 14.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 19, 111, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 19, 111, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d136f;
background: linear-gradient(135deg, #2d136f, #6A136F);

Monochromatic scale

Palettes built from #2d136f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d136f in the Color Lab