Skip to content

#0b40d2

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

RGB
11, 64, 210
HSL
224°, 90%, 43%
CMYK
95, 70, 0, 18
Luminance
0.0839

Every format

HEX#0b40d2
RGBrgb(11, 64, 210)
HSLhsl(224, 90%, 43%)
CMYKcmyk(95%, 70%, 0%, 18%)
LABlab(34.8 42.6 -78.1)
LCHlch(34.8 89.0 298.6)
OKLCHoklch(0.455 0.228 263.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0b40d2 on white: 7.84:1
AA ✓ pass · AA-large · AAA
Aa
#0b40d2 on black: 2.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.3%
Green25.1%
Blue82.4%

CMYK percentages

Cyan94.8%
Magenta69.5%
Yellow0.0%
Key (black)17.6%

Color previews

#0b40d2 text on a black background

contrast 2.68:1

Card sample

#0b40d2 text on a white background

contrast 7.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0b40d2;
Background color
Panel with #0b40d2 background
background-color: #0b40d2;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(11, 64, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(11, 64, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0b40d2;
background: linear-gradient(135deg, #0b40d2, #5B0BD2);

Monochromatic scale

Palettes built from #0b40d2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0b40d2 in the Color Lab