Skip to content

#2b0c6b

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

RGB
43, 12, 107
HSL
260°, 80%, 23%
CMYK
60, 89, 0, 58
Luminance
0.0184

Every format

HEX#2b0c6b
RGBrgb(43, 12, 107)
HSLhsl(260, 80%, 23%)
CMYKcmyk(60%, 89%, 0%, 58%)
LABlab(14.6 38.7 -48.3)
LCHlch(14.6 61.9 308.7)
OKLCHoklch(0.282 0.146 287.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2b0c6b on white: 15.36:1
AA ✓ pass · AA-large · AAA
Aa
#2b0c6b on black: 1.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.9%
Green4.7%
Blue42.0%

CMYK percentages

Cyan59.8%
Magenta88.8%
Yellow0.0%
Key (black)58.0%

Color previews

#2b0c6b text on a black background

contrast 1.37:1

Card sample

#2b0c6b text on a white background

contrast 15.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 12, 107, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 12, 107, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2b0c6b;
background: linear-gradient(135deg, #2b0c6b, #6A0C6B);

Monochromatic scale

Palettes built from #2b0c6b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2b0c6b in the Color Lab