Skip to content

#2f45db

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

RGB
47, 69, 219
HSL
232°, 71%, 52%
CMYK
79, 69, 0, 14
Luminance
0.0998

Every format

HEX#2f45db
RGBrgb(47, 69, 219)
HSLhsl(232, 71%, 52%)
CMYKcmyk(79%, 69%, 0%, 14%)
LABlab(37.8 44.7 -78.3)
LCHlch(37.8 90.1 299.7)
OKLCHoklch(0.482 0.227 268.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f45db on white: 7.01:1
AA ✓ pass · AA-large · AAA
Aa
#2f45db on black: 3.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green27.1%
Blue85.9%

CMYK percentages

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

Color previews

#2f45db text on a black background

contrast 3.00:1

Card sample

#2f45db text on a white background

contrast 7.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f45db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f45db in the Color Lab