Skip to content

#2f36ac

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

RGB
47, 54, 172
HSL
237°, 57%, 43%
CMYK
73, 69, 0, 33
Luminance
0.0622

Every format

HEX#2f36ac
RGBrgb(47, 54, 172)
HSLhsl(237, 57%, 43%)
CMYKcmyk(73%, 69%, 0%, 33%)
LABlab(30.0 37.4 -63.6)
LCHlch(30.0 73.8 300.5)
OKLCHoklch(0.412 0.184 272.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f36ac on white: 9.36:1
AA ✓ pass · AA-large · AAA
Aa
#2f36ac on black: 2.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green21.2%
Blue67.5%

CMYK percentages

Cyan72.7%
Magenta68.6%
Yellow0.0%
Key (black)32.5%

Color previews

#2f36ac text on a black background

contrast 2.24:1

Card sample

#2f36ac text on a white background

contrast 9.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f36ac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f36ac in the Color Lab