Skip to content

#303021

a deep, soft yellow · cool · closest name: darkslategray

RGB
48, 48, 33
HSL
60°, 19%, 16%
CMYK
0, 0, 31, 81
Luminance
0.0285

Every format

HEX#303021
RGBrgb(48, 48, 33)
HSLhsl(60, 19%, 16%)
CMYKcmyk(0%, 0%, 31%, 81%)
LABlab(19.4 -3.1 9.7)
LCHlch(19.4 10.1 107.7)
OKLCHoklch(0.304 0.025 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#303021 on white: 13.37:1
AA ✓ pass · AA-large · AAA
Aa
#303021 on black: 1.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.8%
Green18.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow31.3%
Key (black)81.2%

Color previews

#303021 text on a black background

contrast 1.57:1

Card sample

#303021 text on a white background

contrast 13.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #303021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #303021 in the Color Lab