Skip to content

#2d2fcb

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

RGB
45, 47, 203
HSL
239°, 64%, 49%
CMYK
78, 77, 0, 20
Luminance
0.0690

Every format

HEX#2d2fcb
RGBrgb(45, 47, 203)
HSLhsl(239, 64%, 49%)
CMYKcmyk(78%, 77%, 0%, 20%)
LABlab(31.6 51.7 -79.3)
LCHlch(31.6 94.7 303.1)
OKLCHoklch(0.432 0.230 271.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d2fcb on white: 8.82:1
AA ✓ pass · AA-large · AAA
Aa
#2d2fcb on black: 2.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green18.4%
Blue79.6%

CMYK percentages

Cyan77.8%
Magenta76.8%
Yellow0.0%
Key (black)20.4%

Color previews

#2d2fcb text on a black background

contrast 2.38:1

Card sample

#2d2fcb text on a white background

contrast 8.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 47, 203, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 47, 203, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d2fcb;
background: linear-gradient(135deg, #2d2fcb, #942DCB);

Monochromatic scale

Palettes built from #2d2fcb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d2fcb in the Color Lab