Skip to content

#3f0f5f

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

RGB
63, 15, 95
HSL
276°, 73%, 22%
CMYK
34, 84, 0, 63
Luminance
0.0222

Every format

HEX#3f0f5f
RGBrgb(63, 15, 95)
HSLhsl(276, 73%, 22%)
CMYKcmyk(34%, 84%, 0%, 63%)
LABlab(16.6 37.3 -37.0)
LCHlch(16.6 52.5 315.3)
OKLCHoklch(0.298 0.132 307.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f0f5f on white: 14.53:1
AA ✓ pass · AA-large · AAA
Aa
#3f0f5f on black: 1.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red24.7%
Green5.9%
Blue37.3%

CMYK percentages

Cyan33.7%
Magenta84.2%
Yellow0.0%
Key (black)62.7%

Color previews

#3f0f5f text on a black background

contrast 1.44:1

Card sample

#3f0f5f text on a white background

contrast 14.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(63, 15, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(63, 15, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3f0f5f;
background: linear-gradient(135deg, #3f0f5f, #5F0F4A);

Monochromatic scale

Palettes built from #3f0f5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #3f0f5f in the Color Lab