Skip to content

#0cacfd

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

RGB
12, 172, 253
HSL
200°, 98%, 52%
CMYK
95, 32, 0, 1
Luminance
0.3668

Every format

HEX#0cacfd
RGBrgb(12, 172, 253)
HSLhsl(200, 98%, 52%)
CMYKcmyk(95%, 32%, 0%, 1%)
LABlab(67.0 -7.8 -50.1)
LCHlch(67.0 50.7 261.2)
OKLCHoklch(0.711 0.163 240.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cacfd on white: 2.52:1
AA ✗ fail · AA-large · AAA
Aa
#0cacfd on black: 8.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green67.5%
Blue99.2%

CMYK percentages

Cyan95.3%
Magenta32.0%
Yellow0.0%
Key (black)0.8%

Color previews

#0cacfd text on a black background

contrast 8.34:1

Card sample

#0cacfd text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 172, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 172, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0cacfd;
background: linear-gradient(135deg, #0cacfd, #0D0CFD);

Monochromatic scale

Palettes built from #0cacfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0cacfd in the Color Lab