Skip to content

#2f4ccf

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

RGB
47, 76, 207
HSL
229°, 63%, 50%
CMYK
77, 63, 0, 19
Luminance
0.1028

Every format

HEX#2f4ccf
RGBrgb(47, 76, 207)
HSLhsl(229, 63%, 50%)
CMYKcmyk(77%, 63%, 0%, 19%)
LABlab(38.3 36.1 -70.5)
LCHlch(38.3 79.2 297.1)
OKLCHoklch(0.482 0.204 267.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4ccf on white: 6.87:1
AA ✓ pass · AA-large · AAA
Aa
#2f4ccf on black: 3.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green29.8%
Blue81.2%

CMYK percentages

Cyan77.3%
Magenta63.3%
Yellow0.0%
Key (black)18.8%

Color previews

#2f4ccf text on a black background

contrast 3.06:1

Card sample

#2f4ccf text on a white background

contrast 6.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 76, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 76, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4ccf;
background: linear-gradient(135deg, #2f4ccf, #7D2FCF);

Monochromatic scale

Palettes built from #2f4ccf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4ccf in the Color Lab