Skip to content

#0f59b4

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

RGB
15, 89, 180
HSL
213°, 85%, 38%
CMYK
92, 51, 0, 29
Luminance
0.1054

Every format

HEX#0f59b4
RGBrgb(15, 89, 180)
HSLhsl(213, 85%, 38%)
CMYKcmyk(92%, 51%, 0%, 29%)
LABlab(38.8 14.7 -54.0)
LCHlch(38.8 56.0 285.2)
OKLCHoklch(0.477 0.160 257.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f59b4 on white: 6.76:1
AA ✓ pass · AA-large · AAA
Aa
#0f59b4 on black: 3.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green34.9%
Blue70.6%

CMYK percentages

Cyan91.7%
Magenta50.6%
Yellow0.0%
Key (black)29.4%

Color previews

#0f59b4 text on a black background

contrast 3.11:1

Card sample

#0f59b4 text on a white background

contrast 6.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 89, 180, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 89, 180, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f59b4;
background: linear-gradient(135deg, #0f59b4, #330FB4);

Monochromatic scale

Palettes built from #0f59b4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f59b4 in the Color Lab