Skip to content

#2f03af

a dark, electric violet · warm · closest name: navy

RGB
47, 3, 175
HSL
255°, 97%, 35%
CMYK
73, 98, 0, 31
Luminance
0.0376

Every format

HEX#2f03af
RGBrgb(47, 3, 175)
HSLhsl(255, 97%, 35%)
CMYKcmyk(73%, 98%, 0%, 31%)
LABlab(22.9 59.8 -77.2)
LCHlch(22.9 97.7 307.8)
OKLCHoklch(0.363 0.224 276.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f03af on white: 11.98:1
AA ✓ pass · AA-large · AAA
Aa
#2f03af on black: 1.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green1.2%
Blue68.6%

CMYK percentages

Cyan73.1%
Magenta98.3%
Yellow0.0%
Key (black)31.4%

Color previews

#2f03af text on a black background

contrast 1.75:1

Card sample

#2f03af text on a white background

contrast 11.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f03af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f03af in the Color Lab