Skip to content

#2c103c

a deep, vivid violet · warm · closest name: midnightblue

RGB
44, 16, 60
HSL
278°, 58%, 15%
CMYK
27, 73, 0, 77
Luminance
0.0123

Every format

HEX#2c103c
RGBrgb(44, 16, 60)
HSLhsl(278, 58%, 15%)
CMYKcmyk(27%, 73%, 0%, 77%)
LABlab(10.8 23.4 -22.5)
LCHlch(10.8 32.5 316.2)
OKLCHoklch(0.241 0.084 311.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c103c on white: 16.85:1
AA ✓ pass · AA-large · AAA
Aa
#2c103c on black: 1.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green6.3%
Blue23.5%

CMYK percentages

Cyan26.7%
Magenta73.3%
Yellow0.0%
Key (black)76.5%

Color previews

#2c103c text on a black background

contrast 1.25:1

Card sample

#2c103c text on a white background

contrast 16.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c103c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c103c in the Color Lab