Skip to content

#2c0fcb

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

RGB
44, 15, 203
HSL
249°, 86%, 43%
CMYK
78, 93, 0, 20
Luminance
0.0519

Every format

HEX#2c0fcb
RGBrgb(44, 15, 203)
HSLhsl(249, 86%, 43%)
CMYKcmyk(78%, 93%, 0%, 20%)
LABlab(27.3 64.3 -86.5)
LCHlch(27.3 107.7 306.6)
OKLCHoklch(0.402 0.250 272.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c0fcb on white: 10.31:1
AA ✓ pass · AA-large · AAA
Aa
#2c0fcb on black: 2.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green5.9%
Blue79.6%

CMYK percentages

Cyan78.3%
Magenta92.6%
Yellow0.0%
Key (black)20.4%

Color previews

#2c0fcb text on a black background

contrast 2.04:1

Card sample

#2c0fcb text on a white background

contrast 10.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c0fcb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c0fcb in the Color Lab