Skip to content

#2f263f

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

RGB
47, 38, 63
HSL
262°, 25%, 20%
CMYK
25, 40, 0, 75
Luminance
0.0235

Every format

HEX#2f263f
RGBrgb(47, 38, 63)
HSLhsl(262, 25%, 20%)
CMYKcmyk(25%, 40%, 0%, 75%)
LABlab(17.2 10.5 -14.4)
LCHlch(17.2 17.8 306.2)
OKLCHoklch(0.291 0.046 300.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f263f on white: 14.29:1
AA ✓ pass · AA-large · AAA
Aa
#2f263f on black: 1.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green14.9%
Blue24.7%

CMYK percentages

Cyan25.4%
Magenta39.7%
Yellow0.0%
Key (black)75.3%

Color previews

#2f263f text on a black background

contrast 1.47:1

Card sample

#2f263f text on a white background

contrast 14.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f263f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f263f in the Color Lab