Skip to content

#2e233f

a deep, soft violet · warm · closest name: black

RGB
46, 35, 63
HSL
264°, 29%, 19%
CMYK
27, 44, 0, 75
Luminance
0.0214

Every format

HEX#2e233f
RGBrgb(46, 35, 63)
HSLhsl(264, 29%, 19%)
CMYKcmyk(27%, 44%, 0%, 75%)
LABlab(16.2 12.3 -16.0)
LCHlch(16.2 20.1 307.6)
OKLCHoklch(0.283 0.052 301.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2e233f on white: 14.70:1
AA ✓ pass · AA-large · AAA
Aa
#2e233f on black: 1.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.0%
Green13.7%
Blue24.7%

CMYK percentages

Cyan27.0%
Magenta44.4%
Yellow0.0%
Key (black)75.3%

Color previews

#2e233f text on a black background

contrast 1.43:1

Card sample

#2e233f text on a white background

contrast 14.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(46, 35, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(46, 35, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2e233f;
background: linear-gradient(135deg, #2e233f, #3F233D);

Monochromatic scale

Palettes built from #2e233f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2e233f in the Color Lab