Skip to content

#0c71df

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

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

Every format

HEX#0c71df
RGBrgb(12, 113, 223)
HSLhsl(211, 90%, 46%)
CMYKcmyk(95%, 49%, 0%, 13%)
LABlab(48.5 16.1 -63.1)
LCHlch(48.5 65.1 284.3)
OKLCHoklch(0.561 0.187 256.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c71df on white: 4.73:1
AA ✓ pass · AA-large · AAA
Aa
#0c71df on black: 4.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan94.6%
Magenta49.3%
Yellow0.0%
Key (black)12.5%

Color previews

#0c71df text on a black background

contrast 4.44:1

Card sample

#0c71df text on a white background

contrast 4.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0c71df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c71df in the Color Lab