Skip to content

#0042df

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

RGB
0, 66, 223
HSL
222°, 100%, 44%
CMYK
100, 70, 0, 13
Luminance
0.0922

Every format

HEX#0042df
RGBrgb(0, 66, 223)
HSLhsl(222, 100%, 44%)
CMYKcmyk(100%, 70%, 0%, 13%)
LABlab(36.4 45.9 -82.9)
LCHlch(36.4 94.7 299.0)
OKLCHoklch(0.470 0.242 263.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0042df on white: 7.38:1
AA ✓ pass · AA-large · AAA
Aa
#0042df on black: 2.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green25.9%
Blue87.5%

CMYK percentages

Cyan100.0%
Magenta70.4%
Yellow0.0%
Key (black)12.5%

Color previews

#0042df text on a black background

contrast 2.84:1

Card sample

#0042df text on a white background

contrast 7.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0042df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0042df in the Color Lab