Skip to content

#0f45df

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

RGB
15, 69, 223
HSL
224°, 87%, 47%
CMYK
93, 69, 0, 13
Luminance
0.0969

Every format

HEX#0f45df
RGBrgb(15, 69, 223)
HSLhsl(224, 87%, 47%)
CMYKcmyk(93%, 69%, 0%, 13%)
LABlab(37.3 44.4 -81.5)
LCHlch(37.3 92.8 298.6)
OKLCHoklch(0.477 0.238 264.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f45df on white: 7.15:1
AA ✓ pass · AA-large · AAA
Aa
#0f45df on black: 2.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green27.1%
Blue87.5%

CMYK percentages

Cyan93.3%
Magenta69.1%
Yellow0.0%
Key (black)12.5%

Color previews

#0f45df text on a black background

contrast 2.94:1

Card sample

#0f45df text on a white background

contrast 7.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 69, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 69, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f45df;
background: linear-gradient(135deg, #0f45df, #640FDF);

Monochromatic scale

Palettes built from #0f45df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f45df in the Color Lab