Skip to content

#2f4bcf

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

RGB
47, 75, 207
HSL
230°, 63%, 50%
CMYK
77, 64, 0, 19
Luminance
0.1014

Every format

HEX#2f4bcf
RGBrgb(47, 75, 207)
HSLhsl(230, 63%, 50%)
CMYKcmyk(77%, 64%, 0%, 19%)
LABlab(38.1 36.7 -70.9)
LCHlch(38.1 79.8 297.4)
OKLCHoklch(0.481 0.205 268.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4bcf on white: 6.93:1
AA ✓ pass · AA-large · AAA
Aa
#2f4bcf on black: 3.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

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

Color previews

#2f4bcf text on a black background

contrast 3.03:1

Card sample

#2f4bcf text on a white background

contrast 6.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f4bcf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4bcf in the Color Lab