Skip to content

#2c0fac

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

RGB
44, 15, 172
HSL
251°, 84%, 37%
CMYK
74, 91, 0, 33
Luminance
0.0386

Every format

HEX#2c0fac
RGBrgb(44, 15, 172)
HSLhsl(251, 84%, 37%)
CMYKcmyk(74%, 91%, 0%, 33%)
LABlab(23.2 56.0 -74.8)
LCHlch(23.2 93.5 306.8)
OKLCHoklch(0.364 0.217 275.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c0fac on white: 11.86:1
AA ✓ pass · AA-large · AAA
Aa
#2c0fac on black: 1.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green5.9%
Blue67.5%

CMYK percentages

Cyan74.4%
Magenta91.3%
Yellow0.0%
Key (black)32.5%

Color previews

#2c0fac text on a black background

contrast 1.77:1

Card sample

#2c0fac text on a white background

contrast 11.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c0fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c0fac in the Color Lab