Skip to content

#3f2f9c

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

RGB
63, 47, 156
HSL
249°, 54%, 40%
CMYK
60, 70, 0, 39
Luminance
0.0549

Every format

HEX#3f2f9c
RGBrgb(63, 47, 156)
HSLhsl(249, 54%, 40%)
CMYKcmyk(60%, 70%, 0%, 39%)
LABlab(28.1 38.4 -57.0)
LCHlch(28.1 68.7 304.0)
OKLCHoklch(0.397 0.168 282.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f2f9c on white: 10.01:1
AA ✓ pass · AA-large · AAA
Aa
#3f2f9c on black: 2.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red24.7%
Green18.4%
Blue61.2%

CMYK percentages

Cyan59.6%
Magenta69.9%
Yellow0.0%
Key (black)38.8%

Color previews

#3f2f9c text on a black background

contrast 2.10:1

Card sample

#3f2f9c text on a white background

contrast 10.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(63, 47, 156, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(63, 47, 156, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3f2f9c;
background: linear-gradient(135deg, #3f2f9c, #882F9C);

Monochromatic scale

Palettes built from #3f2f9c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #3f2f9c in the Color Lab