Skip to content

#0f0fd4

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

RGB
15, 15, 212
HSL
240°, 87%, 45%
CMYK
93, 93, 0, 17
Luminance
0.0520

Every format

HEX#0f0fd4
RGBrgb(15, 15, 212)
HSLhsl(240, 87%, 45%)
CMYKcmyk(93%, 93%, 0%, 17%)
LABlab(27.3 66.0 -91.7)
LCHlch(27.3 113.0 305.7)
OKLCHoklch(0.403 0.266 265.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f0fd4 on white: 10.30:1
AA ✓ pass · AA-large · AAA
Aa
#0f0fd4 on black: 2.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green5.9%
Blue83.1%

CMYK percentages

Cyan92.9%
Magenta92.9%
Yellow0.0%
Key (black)16.9%

Color previews

#0f0fd4 text on a black background

contrast 2.04:1

Card sample

#0f0fd4 text on a white background

contrast 10.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 15, 212, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 15, 212, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f0fd4;
background: linear-gradient(135deg, #0f0fd4, #920FD4);

Monochromatic scale

Palettes built from #0f0fd4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f0fd4 in the Color Lab