Skip to content

#2f46db

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

RGB
47, 70, 219
HSL
232°, 71%, 52%
CMYK
79, 68, 0, 14
Luminance
0.1010

Every format

HEX#2f46db
RGBrgb(47, 70, 219)
HSLhsl(232, 71%, 52%)
CMYKcmyk(79%, 68%, 0%, 14%)
LABlab(38.0 44.1 -77.9)
LCHlch(38.0 89.5 299.5)
OKLCHoklch(0.483 0.226 268.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f46db on white: 6.95:1
AA ✓ pass · AA-large · AAA
Aa
#2f46db on black: 3.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green27.5%
Blue85.9%

CMYK percentages

Cyan78.5%
Magenta68.0%
Yellow0.0%
Key (black)14.1%

Color previews

#2f46db text on a black background

contrast 3.02:1

Card sample

#2f46db text on a white background

contrast 6.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f46db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f46db in the Color Lab