Skip to content

#2b0f5c

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

RGB
43, 15, 92
HSL
262°, 72%, 21%
CMYK
53, 84, 0, 64
Luminance
0.0163

Every format

HEX#2b0f5c
RGBrgb(43, 15, 92)
HSLhsl(262, 72%, 21%)
CMYKcmyk(53%, 84%, 0%, 64%)
LABlab(13.4 33.0 -40.4)
LCHlch(13.4 52.1 309.3)
OKLCHoklch(0.268 0.125 292.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2b0f5c on white: 15.84:1
AA ✓ pass · AA-large · AAA
Aa
#2b0f5c on black: 1.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.9%
Green5.9%
Blue36.1%

CMYK percentages

Cyan53.3%
Magenta83.7%
Yellow0.0%
Key (black)63.9%

Color previews

#2b0f5c text on a black background

contrast 1.33:1

Card sample

#2b0f5c text on a white background

contrast 15.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 15, 92, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 15, 92, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2b0f5c;
background: linear-gradient(135deg, #2b0f5c, #5C0F5A);

Monochromatic scale

Palettes built from #2b0f5c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2b0f5c in the Color Lab