Skip to content

#0f2ffb

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

RGB
15, 47, 251
HSL
232°, 97%, 52%
CMYK
94, 81, 0, 2
Luminance
0.0910

Every format

HEX#0f2ffb
RGBrgb(15, 47, 251)
HSLhsl(232, 97%, 52%)
CMYKcmyk(94%, 81%, 0%, 2%)
LABlab(36.2 65.5 -99.1)
LCHlch(36.2 118.8 303.5)
OKLCHoklch(0.478 0.288 265.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f2ffb on white: 7.45:1
AA ✓ pass · AA-large · AAA
Aa
#0f2ffb on black: 2.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green18.4%
Blue98.4%

CMYK percentages

Cyan94.0%
Magenta81.3%
Yellow0.0%
Key (black)1.6%

Color previews

#0f2ffb text on a black background

contrast 2.82:1

Card sample

#0f2ffb text on a white background

contrast 7.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f2ffb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f2ffb in the Color Lab