Skip to content

#2f2adf

a balanced, vivid blue · warm · closest name: blue

RGB
47, 42, 223
HSL
242°, 74%, 52%
CMYK
79, 81, 0, 13
Luminance
0.0759

Every format

HEX#2f2adf
RGBrgb(47, 42, 223)
HSLhsl(242, 74%, 52%)
CMYKcmyk(79%, 81%, 0%, 13%)
LABlab(33.1 60.4 -88.3)
LCHlch(33.1 107.0 304.4)
OKLCHoklch(0.450 0.256 270.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2adf on white: 8.34:1
AA ✓ pass · AA-large · AAA
Aa
#2f2adf on black: 2.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green16.5%
Blue87.5%

CMYK percentages

Cyan78.9%
Magenta81.2%
Yellow0.0%
Key (black)12.5%

Color previews

#2f2adf text on a black background

contrast 2.52:1

Card sample

#2f2adf text on a white background

contrast 8.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2adf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2adf in the Color Lab