Skip to content

#312c21

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

RGB
49, 44, 33
HSL
41°, 20%, 16%
CMYK
0, 10, 33, 81
Luminance
0.0256

Every format

HEX#312c21
RGBrgb(49, 44, 33)
HSLhsl(41, 20%, 16%)
CMYKcmyk(0%, 10%, 33%, 81%)
LABlab(18.2 0.1 8.0)
LCHlch(18.2 8.0 89.4)
OKLCHoklch(0.295 0.020 86.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#312c21 on white: 13.88:1
AA ✓ pass · AA-large · AAA
Aa
#312c21 on black: 1.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red19.2%
Green17.3%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta10.2%
Yellow32.7%
Key (black)80.8%

Color previews

#312c21 text on a black background

contrast 1.51:1

Card sample

#312c21 text on a white background

contrast 13.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(49, 44, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 44, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #312c21;
background: linear-gradient(135deg, #312c21, #2B3121);

Monochromatic scale

Palettes built from #312c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #312c21 in the Color Lab