Skip to content

#0040df

a dark, electric blue · cool · closest name: slateblue

RGB
0, 64, 223
HSL
223°, 100%, 44%
CMYK
100, 71, 0, 13
Luminance
0.0899

Every format

HEX#0040df
RGBrgb(0, 64, 223)
HSLhsl(223, 100%, 44%)
CMYKcmyk(100%, 71%, 0%, 13%)
LABlab(36.0 47.1 -83.6)
LCHlch(36.0 96.0 299.4)
OKLCHoklch(0.467 0.244 263.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0040df on white: 7.50:1
AA ✓ pass · AA-large · AAA
Aa
#0040df on black: 2.80:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green25.1%
Blue87.5%

CMYK percentages

Cyan100.0%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#0040df text on a black background

contrast 2.80:1

Card sample

#0040df text on a white background

contrast 7.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0040df;
Background color
Panel with #0040df background
background-color: #0040df;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(0, 64, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 64, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0040df;
background: linear-gradient(135deg, #0040df, #5500DF);

Monochromatic scale

Palettes built from #0040df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0040df in the Color Lab