Skip to content

#0cacfe

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

RGB
12, 172, 254
HSL
200°, 99%, 52%
CMYK
95, 32, 0, 0
Luminance
0.3674

Every format

HEX#0cacfe
RGBrgb(12, 172, 254)
HSLhsl(200, 99%, 52%)
CMYKcmyk(95%, 32%, 0%, 0%)
LABlab(67.1 -7.4 -50.6)
LCHlch(67.1 51.1 261.6)
OKLCHoklch(0.712 0.164 241.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red4.7%
Green67.5%
Blue99.6%

CMYK percentages

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

Color previews

#0cacfe text on a black background

contrast 8.35:1

Card sample

#0cacfe text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cacfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0cacfe in the Color Lab