Skip to content

#2f3fac

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

RGB
47, 63, 172
HSL
232°, 57%, 43%
CMYK
73, 63, 0, 33
Luminance
0.0714

Every format

HEX#2f3fac
RGBrgb(47, 63, 172)
HSLhsl(232, 57%, 43%)
CMYKcmyk(73%, 63%, 0%, 33%)
LABlab(32.1 31.7 -60.1)
LCHlch(32.1 68.0 297.8)
OKLCHoklch(0.427 0.174 270.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f3fac on white: 8.65:1
AA ✓ pass · AA-large · AAA
Aa
#2f3fac on black: 2.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green24.7%
Blue67.5%

CMYK percentages

Cyan72.7%
Magenta63.4%
Yellow0.0%
Key (black)32.5%

Color previews

#2f3fac text on a black background

contrast 2.43:1

Card sample

#2f3fac text on a white background

contrast 8.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f3fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f3fac in the Color Lab