Skip to content

#2d233f

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

RGB
45, 35, 63
HSL
261°, 29%, 19%
CMYK
29, 44, 0, 75
Luminance
0.0212

Every format

HEX#2d233f
RGBrgb(45, 35, 63)
HSLhsl(261, 29%, 19%)
CMYKcmyk(29%, 44%, 0%, 75%)
LABlab(16.1 11.9 -16.2)
LCHlch(16.1 20.1 306.4)
OKLCHoklch(0.281 0.052 299.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d233f on white: 14.75:1
AA ✓ pass · AA-large · AAA
Aa
#2d233f on black: 1.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green13.7%
Blue24.7%

CMYK percentages

Cyan28.6%
Magenta44.4%
Yellow0.0%
Key (black)75.3%

Color previews

#2d233f text on a black background

contrast 1.42:1

Card sample

#2d233f text on a white background

contrast 14.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d233f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d233f in the Color Lab