Skip to content

#200c3b

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

RGB
32, 12, 59
HSL
266°, 66%, 14%
CMYK
46, 80, 0, 77
Luminance
0.0089

Every format

HEX#200c3b
RGBrgb(32, 12, 59)
HSLhsl(266, 66%, 14%)
CMYKcmyk(46%, 80%, 0%, 77%)
LABlab(8.0 22.4 -26.3)
LCHlch(8.0 34.6 310.4)
OKLCHoklch(0.217 0.086 298.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#200c3b on white: 17.84:1
AA ✓ pass · AA-large · AAA
Aa
#200c3b on black: 1.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.5%
Green4.7%
Blue23.1%

CMYK percentages

Cyan45.8%
Magenta79.7%
Yellow0.0%
Key (black)76.9%

Color previews

#200c3b text on a black background

contrast 1.18:1

Card sample

#200c3b text on a white background

contrast 17.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #200c3b;
Background color
Panel with #200c3b background
background-color: #200c3b;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(32, 12, 59, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(32, 12, 59, 0.45);
Border & gradient
Gradient panel
border: 3px solid #200c3b;
background: linear-gradient(135deg, #200c3b, #3B0C37);

Monochromatic scale

Palettes built from #200c3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #200c3b in the Color Lab