Skip to content

#2f1069

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

RGB
47, 16, 105
HSL
261°, 74%, 24%
CMYK
55, 85, 0, 59
Luminance
0.0199

Every format

HEX#2f1069
RGBrgb(47, 16, 105)
HSLhsl(261, 74%, 24%)
CMYKcmyk(55%, 85%, 0%, 59%)
LABlab(15.5 37.0 -45.6)
LCHlch(15.5 58.7 309.0)
OKLCHoklch(0.288 0.140 290.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f1069 on white: 15.01:1
AA ✓ pass · AA-large · AAA
Aa
#2f1069 on black: 1.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green6.3%
Blue41.2%

CMYK percentages

Cyan55.2%
Magenta84.8%
Yellow0.0%
Key (black)58.8%

Color previews

#2f1069 text on a black background

contrast 1.40:1

Card sample

#2f1069 text on a white background

contrast 15.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 16, 105, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 16, 105, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f1069;
background: linear-gradient(135deg, #2f1069, #691068);

Monochromatic scale

Palettes built from #2f1069

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f1069 in the Color Lab