Skip to content

#2f233f

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

RGB
47, 35, 63
HSL
266°, 29%, 19%
CMYK
25, 44, 0, 75
Luminance
0.0217

Every format

HEX#2f233f
RGBrgb(47, 35, 63)
HSLhsl(266, 29%, 19%)
CMYKcmyk(25%, 44%, 0%, 75%)
LABlab(16.3 12.6 -15.8)
LCHlch(16.3 20.2 308.7)
OKLCHoklch(0.284 0.052 303.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red18.4%
Green13.7%
Blue24.7%

CMYK percentages

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

Color previews

#2f233f text on a black background

contrast 1.43:1

Card sample

#2f233f text on a white background

contrast 14.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f233f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f233f in the Color Lab