Skip to content

#2f4bfc

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

RGB
47, 75, 252
HSL
232°, 97%, 59%
CMYK
81, 70, 0, 1
Luminance
0.1266

Every format

HEX#2f4bfc
RGBrgb(47, 75, 252)
HSLhsl(232, 97%, 59%)
CMYKcmyk(81%, 70%, 0%, 1%)
LABlab(42.3 52.4 -89.6)
LCHlch(42.3 103.8 300.3)
OKLCHoklch(0.523 0.260 267.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4bfc on white: 5.94:1
AA ✓ pass · AA-large · AAA
Aa
#2f4bfc on black: 3.53:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green29.4%
Blue98.8%

CMYK percentages

Cyan81.3%
Magenta70.2%
Yellow0.0%
Key (black)1.2%

Color previews

#2f4bfc text on a black background

contrast 3.53:1

Card sample

#2f4bfc text on a white background

contrast 5.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 75, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 75, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4bfc;
background: linear-gradient(135deg, #2f4bfc, #9C2FFC);

Monochromatic scale

Palettes built from #2f4bfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4bfc in the Color Lab