Skip to content

#333333

a deep, muted gray · warm · closest name: darkslategray

RGB
51, 51, 51
HSL
0°, 0%, 20%
CMYK
0, 0, 0, 80
Luminance
0.0331

Every format

HEX#333333
RGBrgb(51, 51, 51)
HSLhsl(0, 0%, 20%)
CMYKcmyk(0%, 0%, 0%, 80%)
LABlab(21.3 0.0 0.0)
LCHlch(21.3 0.0 180.0)
OKLCHoklch(0.321 0.000 89.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#333333 on white: 12.63:1
AA ✓ pass · AA-large · AAA
Aa
#333333 on black: 1.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red20.0%
Green20.0%
Blue20.0%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow0.0%
Key (black)80.0%

Color previews

#333333 text on a black background

contrast 1.66:1

Card sample

#333333 text on a white background

contrast 12.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #333333

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #333333 in the Color Lab