Skip to content

#4d2daf

a dark, vivid blue · warm · closest name: indigo

RGB
77, 45, 175
HSL
255°, 59%, 43%
CMYK
56, 74, 0, 31
Luminance
0.0655

Every format

HEX#4d2daf
RGBrgb(77, 45, 175)
HSLhsl(255, 59%, 43%)
CMYKcmyk(56%, 74%, 0%, 31%)
LABlab(30.8 47.4 -64.0)
LCHlch(30.8 79.7 306.5)
OKLCHoklch(0.424 0.192 286.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4d2daf on white: 9.09:1
AA ✓ pass · AA-large · AAA
Aa
#4d2daf on black: 2.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red30.2%
Green17.6%
Blue68.6%

CMYK percentages

Cyan56.0%
Magenta74.3%
Yellow0.0%
Key (black)31.4%

Color previews

#4d2daf text on a black background

contrast 2.31:1

Card sample

#4d2daf text on a white background

contrast 9.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4d2daf;
Background color
Panel with #4d2daf background
background-color: #4d2daf;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4d2daf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4d2daf in the Color Lab