Skip to content

#2d40df

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

RGB
45, 64, 223
HSL
234°, 74%, 53%
CMYK
80, 71, 0, 13
Luminance
0.0955

Every format

HEX#2d40df
RGBrgb(45, 64, 223)
HSLhsl(234, 74%, 53%)
CMYKcmyk(80%, 71%, 0%, 13%)
LABlab(37.0 48.9 -81.8)
LCHlch(37.0 95.3 300.8)
OKLCHoklch(0.477 0.237 268.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d40df on white: 7.22:1
AA ✓ pass · AA-large · AAA
Aa
#2d40df on black: 2.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green25.1%
Blue87.5%

CMYK percentages

Cyan79.8%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#2d40df text on a black background

contrast 2.91:1

Card sample

#2d40df text on a white background

contrast 7.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 64, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 64, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d40df;
background: linear-gradient(135deg, #2d40df, #912DDF);

Monochromatic scale

Palettes built from #2d40df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d40df in the Color Lab