Skip to content

#0c7dfb

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

RGB
12, 125, 251
HSL
212°, 97%, 52%
CMYK
95, 50, 0, 2
Luminance
0.2171

Every format

HEX#0c7dfb
RGBrgb(12, 125, 251)
HSLhsl(212, 97%, 52%)
CMYKcmyk(95%, 50%, 0%, 2%)
LABlab(53.7 19.4 -70.3)
LCHlch(53.7 73.0 285.4)
OKLCHoklch(0.607 0.208 256.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red4.7%
Green49.0%
Blue98.4%

CMYK percentages

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

Color previews

#0c7dfb text on a black background

contrast 5.34:1

Card sample

#0c7dfb text on a white background

contrast 3.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0c7dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c7dfb in the Color Lab