Skip to content

#2c0ccf

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

RGB
44, 12, 207
HSL
250°, 89%, 43%
CMYK
79, 94, 0, 19
Luminance
0.0530

Every format

HEX#2c0ccf
RGBrgb(44, 12, 207)
HSLhsl(250, 89%, 43%)
CMYKcmyk(79%, 94%, 0%, 19%)
LABlab(27.6 66.0 -88.3)
LCHlch(27.6 110.2 306.8)
OKLCHoklch(0.406 0.255 271.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c0ccf on white: 10.19:1
AA ✓ pass · AA-large · AAA
Aa
#2c0ccf on black: 2.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green4.7%
Blue81.2%

CMYK percentages

Cyan78.7%
Magenta94.2%
Yellow0.0%
Key (black)18.8%

Color previews

#2c0ccf text on a black background

contrast 2.06:1

Card sample

#2c0ccf text on a white background

contrast 10.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2c0ccf;
Background color
Panel with #2c0ccf background
background-color: #2c0ccf;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c0ccf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c0ccf in the Color Lab