Skip to content

#2f2cad

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

RGB
47, 44, 173
HSL
241°, 59%, 43%
CMYK
73, 75, 0, 32
Luminance
0.0542

Every format

HEX#2f2cad
RGBrgb(47, 44, 173)
HSLhsl(241, 59%, 43%)
CMYKcmyk(73%, 75%, 0%, 32%)
LABlab(27.9 43.7 -67.6)
LCHlch(27.9 80.5 302.9)
OKLCHoklch(0.397 0.196 273.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2cad on white: 10.07:1
AA ✓ pass · AA-large · AAA
Aa
#2f2cad on black: 2.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green17.3%
Blue67.8%

CMYK percentages

Cyan72.8%
Magenta74.6%
Yellow0.0%
Key (black)32.2%

Color previews

#2f2cad text on a black background

contrast 2.08:1

Card sample

#2f2cad text on a white background

contrast 10.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2cad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2cad in the Color Lab