Skip to content

#0b7dfb

a balanced, electric blue · cool · closest name: royalblue

RGB
11, 125, 251
HSL
212°, 97%, 51%
CMYK
96, 50, 0, 2
Luminance
0.2170

Every format

HEX#0b7dfb
RGBrgb(11, 125, 251)
HSLhsl(212, 97%, 51%)
CMYKcmyk(96%, 50%, 0%, 2%)
LABlab(53.7 19.4 -70.3)
LCHlch(53.7 73.0 285.4)
OKLCHoklch(0.607 0.208 256.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0b7dfb on white: 3.93:1
AA ✗ fail · AA-large · AAA
Aa
#0b7dfb on black: 5.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.3%
Green49.0%
Blue98.4%

CMYK percentages

Cyan95.6%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#0b7dfb text on a black background

contrast 5.34:1

Card sample

#0b7dfb text on a white background

contrast 3.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(11, 125, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(11, 125, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0b7dfb;
background: linear-gradient(135deg, #0b7dfb, #390BFB);

Monochromatic scale

Palettes built from #0b7dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0b7dfb in the Color Lab