Skip to content

#2f3cac

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

RGB
47, 60, 172
HSL
234°, 57%, 43%
CMYK
73, 65, 0, 33
Luminance
0.0681

Every format

HEX#2f3cac
RGBrgb(47, 60, 172)
HSLhsl(234, 57%, 43%)
CMYKcmyk(73%, 65%, 0%, 33%)
LABlab(31.4 33.6 -61.3)
LCHlch(31.4 69.9 298.8)
OKLCHoklch(0.422 0.177 271.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f3cac on white: 8.89:1
AA ✓ pass · AA-large · AAA
Aa
#2f3cac on black: 2.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green23.5%
Blue67.5%

CMYK percentages

Cyan72.7%
Magenta65.1%
Yellow0.0%
Key (black)32.5%

Color previews

#2f3cac text on a black background

contrast 2.36:1

Card sample

#2f3cac text on a white background

contrast 8.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 60, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 60, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f3cac;
background: linear-gradient(135deg, #2f3cac, #752FAC);

Monochromatic scale

Palettes built from #2f3cac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f3cac in the Color Lab