Skip to content

#2f2fab

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

RGB
47, 47, 171
HSL
240°, 57%, 43%
CMYK
73, 73, 0, 33
Luminance
0.0558

Every format

HEX#2f2fab
RGBrgb(47, 47, 171)
HSLhsl(240, 57%, 43%)
CMYKcmyk(73%, 73%, 0%, 33%)
LABlab(28.3 41.3 -65.7)
LCHlch(28.3 77.6 302.1)
OKLCHoklch(0.400 0.191 273.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2fab on white: 9.93:1
AA ✓ pass · AA-large · AAA
Aa
#2f2fab on black: 2.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green18.4%
Blue67.1%

CMYK percentages

Cyan72.5%
Magenta72.5%
Yellow0.0%
Key (black)32.9%

Color previews

#2f2fab text on a black background

contrast 2.12:1

Card sample

#2f2fab text on a white background

contrast 9.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2fab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2fab in the Color Lab