Skip to content

#0c7cdf

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

RGB
12, 124, 223
HSL
208°, 90%, 46%
CMYK
95, 44, 0, 13
Luminance
0.1982

Every format

HEX#0c7cdf
RGBrgb(12, 124, 223)
HSLhsl(208, 90%, 46%)
CMYKcmyk(95%, 44%, 0%, 13%)
LABlab(51.6 9.2 -58.1)
LCHlch(51.6 58.8 279.0)
OKLCHoklch(0.585 0.175 252.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c7cdf on white: 4.23:1
AA ✗ fail · AA-large · AAA
Aa
#0c7cdf on black: 4.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green48.6%
Blue87.5%

CMYK percentages

Cyan94.6%
Magenta44.4%
Yellow0.0%
Key (black)12.5%

Color previews

#0c7cdf text on a black background

contrast 4.96:1

Card sample

#0c7cdf text on a white background

contrast 4.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 124, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 124, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c7cdf;
background: linear-gradient(135deg, #0c7cdf, #290CDF);

Monochromatic scale

Palettes built from #0c7cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c7cdf in the Color Lab