Skip to content

#0f2cf8

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

RGB
15, 44, 248
HSL
233°, 94%, 52%
CMYK
94, 82, 0, 3
Luminance
0.0868

Every format

HEX#0f2cf8
RGBrgb(15, 44, 248)
HSLhsl(233, 94%, 52%)
CMYKcmyk(94%, 82%, 0%, 3%)
LABlab(35.4 66.0 -98.8)
LCHlch(35.4 118.8 303.7)
OKLCHoklch(0.471 0.287 265.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f2cf8 on white: 7.68:1
AA ✓ pass · AA-large · AAA
Aa
#0f2cf8 on black: 2.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green17.3%
Blue97.3%

CMYK percentages

Cyan94.0%
Magenta82.3%
Yellow0.0%
Key (black)2.7%

Color previews

#0f2cf8 text on a black background

contrast 2.74:1

Card sample

#0f2cf8 text on a white background

contrast 7.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f2cf8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f2cf8 in the Color Lab