Skip to content

#0c72df

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

RGB
12, 114, 223
HSL
211°, 90%, 46%
CMYK
95, 49, 0, 13
Luminance
0.1744

Every format

HEX#0c72df
RGBrgb(12, 114, 223)
HSLhsl(211, 90%, 46%)
CMYKcmyk(95%, 49%, 0%, 13%)
LABlab(48.8 15.5 -62.6)
LCHlch(48.8 64.5 283.9)
OKLCHoklch(0.563 0.186 255.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c72df on white: 4.68:1
AA ✓ pass · AA-large · AAA
Aa
#0c72df on black: 4.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green44.7%
Blue87.5%

CMYK percentages

Cyan94.6%
Magenta48.9%
Yellow0.0%
Key (black)12.5%

Color previews

#0c72df text on a black background

contrast 4.49:1

Card sample

#0c72df text on a white background

contrast 4.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 114, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 114, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c72df;
background: linear-gradient(135deg, #0c72df, #330CDF);

Monochromatic scale

Palettes built from #0c72df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c72df in the Color Lab