Skip to content

#0c9dfb

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

RGB
12, 157, 251
HSL
204°, 97%, 52%
CMYK
95, 38, 0, 2
Luminance
0.3116

Every format

HEX#0c9dfb
RGBrgb(12, 157, 251)
HSLhsl(204, 97%, 52%)
CMYKcmyk(95%, 38%, 0%, 2%)
LABlab(62.6 0.0 -56.0)
LCHlch(62.6 56.0 270.0)
OKLCHoklch(0.676 0.174 246.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c9dfb on white: 2.90:1
AA ✗ fail · AA-large · AAA
Aa
#0c9dfb on black: 7.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green61.6%
Blue98.4%

CMYK percentages

Cyan95.2%
Magenta37.5%
Yellow0.0%
Key (black)1.6%

Color previews

#0c9dfb text on a black background

contrast 7.23:1

Card sample

#0c9dfb text on a white background

contrast 2.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0c9dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c9dfb in the Color Lab