Skip to content

#0f58af

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

RGB
15, 88, 175
HSL
213°, 84%, 37%
CMYK
91, 50, 0, 31
Luminance
0.1018

Every format

HEX#0f58af
RGBrgb(15, 88, 175)
HSLhsl(213, 84%, 37%)
CMYKcmyk(91%, 50%, 0%, 31%)
LABlab(38.1 13.3 -52.1)
LCHlch(38.1 53.8 284.3)
OKLCHoklch(0.471 0.154 256.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f58af on white: 6.92:1
AA ✓ pass · AA-large · AAA
Aa
#0f58af on black: 3.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green34.5%
Blue68.6%

CMYK percentages

Cyan91.4%
Magenta49.7%
Yellow0.0%
Key (black)31.4%

Color previews

#0f58af text on a black background

contrast 3.04:1

Card sample

#0f58af text on a white background

contrast 6.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 88, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 88, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f58af;
background: linear-gradient(135deg, #0f58af, #310FAF);

Monochromatic scale

Palettes built from #0f58af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f58af in the Color Lab