Skip to content

#361980

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

RGB
54, 25, 128
HSL
257°, 67%, 30%
CMYK
58, 81, 0, 50
Luminance
0.0304

Every format

HEX#361980
RGBrgb(54, 25, 128)
HSLhsl(257, 67%, 30%)
CMYKcmyk(58%, 81%, 0%, 50%)
LABlab(20.2 40.4 -52.6)
LCHlch(20.2 66.3 307.5)
OKLCHoklch(0.330 0.158 287.0)

Copy-ready code

/* CSS */
color: #361980;
background-color: #361980;
/* Tailwind (arbitrary) */
class="text-[#361980] bg-[#361980]"
/* SCSS */
$brand: #361980;
/* SwiftUI */
Color(red: 0.212, green: 0.098, blue: 0.502)
/* Android */
Color.parseColor("#361980")

Accessibility — WCAG contrast

Aa
#361980 on white: 13.06:1
AA ✓ pass · AA-large · AAA
Aa
#361980 on black: 1.61:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red21.2%
Green9.8%
Blue50.2%

CMYK percentages

Cyan57.8%
Magenta80.5%
Yellow0.0%
Key (black)49.8%

Color previews

#361980 text on a black background

contrast 1.61:1

Card sample

#361980 text on a white background

contrast 13.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(54, 25, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(54, 25, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #361980;
background: linear-gradient(135deg, #361980, #7B1980);

Monochromatic scale

Palettes built from #361980

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #361980 in the Color Lab