Skip to content

#0c59df

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

RGB
12, 89, 223
HSL
218°, 90%, 46%
CMYK
95, 60, 0, 13
Luminance
0.1255

Every format

HEX#0c59df
RGBrgb(12, 89, 223)
HSLhsl(218, 90%, 46%)
CMYKcmyk(95%, 60%, 0%, 13%)
LABlab(42.1 31.6 -73.6)
LCHlch(42.1 80.1 293.2)
OKLCHoklch(0.512 0.216 261.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c59df on white: 5.98:1
AA ✓ pass · AA-large · AAA
Aa
#0c59df on black: 3.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green34.9%
Blue87.5%

CMYK percentages

Cyan94.6%
Magenta60.1%
Yellow0.0%
Key (black)12.5%

Color previews

#0c59df text on a black background

contrast 3.51:1

Card sample

#0c59df text on a white background

contrast 5.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0c59df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c59df in the Color Lab