Skip to content

#0f3dc7

a dark, electric blue · warm · closest name: slateblue

RGB
15, 61, 199
HSL
225°, 86%, 42%
CMYK
93, 69, 0, 22
Luminance
0.0756

Every format

HEX#0f3dc7
RGBrgb(15, 61, 199)
HSLhsl(225, 86%, 42%)
CMYKcmyk(93%, 69%, 0%, 22%)
LABlab(33.0 40.6 -74.6)
LCHlch(33.0 84.9 298.6)
OKLCHoklch(0.439 0.217 264.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f3dc7 on white: 8.36:1
AA ✓ pass · AA-large · AAA
Aa
#0f3dc7 on black: 2.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green23.9%
Blue78.0%

CMYK percentages

Cyan92.5%
Magenta69.3%
Yellow0.0%
Key (black)22.0%

Color previews

#0f3dc7 text on a black background

contrast 2.51:1

Card sample

#0f3dc7 text on a white background

contrast 8.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 61, 199, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 61, 199, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f3dc7;
background: linear-gradient(135deg, #0f3dc7, #5C0FC7);

Monochromatic scale

Palettes built from #0f3dc7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f3dc7 in the Color Lab