Skip to content

#2f4adf

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

RGB
47, 74, 223
HSL
231°, 73%, 53%
CMYK
79, 67, 0, 13
Luminance
0.1083

Every format

HEX#2f4adf
RGBrgb(47, 74, 223)
HSLhsl(231, 73%, 53%)
CMYKcmyk(79%, 67%, 0%, 13%)
LABlab(39.3 43.0 -78.1)
LCHlch(39.3 89.2 298.9)
OKLCHoklch(0.494 0.226 268.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4adf on white: 6.63:1
AA ✓ pass · AA-large · AAA
Aa
#2f4adf on black: 3.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green29.0%
Blue87.5%

CMYK percentages

Cyan78.9%
Magenta66.8%
Yellow0.0%
Key (black)12.5%

Color previews

#2f4adf text on a black background

contrast 3.17:1

Card sample

#2f4adf text on a white background

contrast 6.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 74, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 74, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4adf;
background: linear-gradient(135deg, #2f4adf, #892FDF);

Monochromatic scale

Palettes built from #2f4adf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4adf in the Color Lab