Skip to content

#2f033d

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

RGB
47, 3, 61
HSL
286°, 91%, 13%
CMYK
23, 95, 0, 76
Luminance
0.0101

Every format

HEX#2f033d
RGBrgb(47, 3, 61)
HSLhsl(286, 91%, 13%)
CMYKcmyk(23%, 95%, 0%, 76%)
LABlab(9.1 31.2 -26.0)
LCHlch(9.1 40.6 320.2)
OKLCHoklch(0.230 0.106 316.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f033d on white: 17.48:1
AA ✓ pass · AA-large · AAA
Aa
#2f033d on black: 1.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green1.2%
Blue23.9%

CMYK percentages

Cyan23.0%
Magenta95.1%
Yellow0.0%
Key (black)76.1%

Color previews

#2f033d text on a black background

contrast 1.20:1

Card sample

#2f033d text on a white background

contrast 17.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f033d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f033d in the Color Lab