Skip to content

#412c82

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

RGB
65, 44, 130
HSL
255°, 49%, 34%
CMYK
50, 66, 0, 49
Luminance
0.0454

Every format

HEX#412c82
RGBrgb(65, 44, 130)
HSLhsl(255, 49%, 34%)
CMYKcmyk(50%, 66%, 0%, 49%)
LABlab(25.4 32.3 -45.3)
LCHlch(25.4 55.7 305.5)
OKLCHoklch(0.370 0.137 289.1)

Copy-ready code

/* CSS */
color: #412c82;
background-color: #412c82;
/* Tailwind (arbitrary) */
class="text-[#412c82] bg-[#412c82]"
/* SCSS */
$brand: #412c82;
/* SwiftUI */
Color(red: 0.255, green: 0.173, blue: 0.510)
/* Android */
Color.parseColor("#412c82")

Accessibility — WCAG contrast

Aa
#412c82 on white: 11.01:1
AA ✓ pass · AA-large · AAA
Aa
#412c82 on black: 1.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.5%
Green17.3%
Blue51.0%

CMYK percentages

Cyan50.0%
Magenta66.2%
Yellow0.0%
Key (black)49.0%

Color previews

#412c82 text on a black background

contrast 1.91:1

Card sample

#412c82 text on a white background

contrast 11.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(65, 44, 130, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(65, 44, 130, 0.45);
Border & gradient
Gradient panel
border: 3px solid #412c82;
background: linear-gradient(135deg, #412c82, #7A2C82);

Monochromatic scale

Palettes built from #412c82

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #412c82 in the Color Lab