Skip to content

#331f20

a deep, soft red · warm · closest name: Black

RGB
51, 31, 32
HSL
357°, 24%, 16%
CMYK
0, 39, 37, 80
Luminance
0.0179

At a glance

Every number on this page in one read: what #331f20 is made of, how bright it looks, and which way it leans.

Hex
#331f20
Hue
357°
red
Saturation
24%
soft
Lightness
16%
deep
Brightness
20%
HSV value
Perceived
15%
weighted brightness
Luminance
0.0179
WCAG relative
Temperature
Warm
28/100 cool
Color family
Red
Tone
Soft
Best ink
White
15.47:1
Closest name
Black
ΔE2000 14.3
Where it sits
Hue357° of 360°
Saturation24%
Lightness16%
Temperature
Warm ← → Cool28% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#331f20
RGBrgb(51, 31, 32)
HSLhsl(357, 24%, 16%)
CMYKcmyk(0%, 39%, 37%, 80%)
LABlab(14.3 9.9 3.3)
LCHlch(14.3 10.4 18.5)
OKLCHoklch(0.265 0.031 16.1)
Decimal3350304
Display P3color(display-p3 0.200 0.122 0.125)

Copy-ready code

/* CSS */
color: #331f20;
background-color: #331f20;
/* Tailwind (arbitrary) */
class="text-[#331f20] bg-[#331f20]"
/* SCSS */
$brand: #331f20;
/* SwiftUI */
Color(red: 0.200, green: 0.122, blue: 0.125)
/* Android */
Color.parseColor("#331f20")
/* Flutter */
Color(0xFF331F20)
/* Python / OpenCV (BGR) */
(32, 31, 51)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #331f20 · 15.47:1
Use #ffffffAAA at every size.
Aa
White text · 15.47:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.36:1
AA fail · AA large fail · AAA fail
Reading the other direction: #331f20 as text scores 15.47:1 on white and 1.36:1 on black.

Accessibility — WCAG contrast

Aa
#331f20 on white: 15.47:1
AA ✓ pass · AA-large · AAA
Aa
#331f20 on black: 1.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #232220
deuteranopia · #272620
tritanopia · #371D1F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #331f20 is pinned to step 950; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F6F6
#F3EDED
#E5D7D7
#D5B9BB
#BF9698
#AA7376
#985D60
#7F4D50
#663E40
#4B2F31
#331f20
Base = 950Lightest = 50 · #F9F6F6Darkest = 950 · #331f20
:root {
  --brand-50: #F9F6F6;
  --brand-100: #F3EDED;
  --brand-200: #E5D7D7;
  --brand-300: #D5B9BB;
  --brand-400: #BF9698;
  --brand-500: #AA7376;
  --brand-600: #985D60;
  --brand-700: #7F4D50;
  --brand-800: #663E40;
  --brand-900: #4B2F31;
  --brand-950: #331f20;
  --brand: #331f20;
  --brand-ink: #ffffff;
}

Colors that work with #331f20

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F9F5F6
Tinted page background
Border#E0CCCD
Hairlines and dividers
Muted text#8F575A
Captions on the surface
Accent#1D352E
Second voice, not a rival
Dark variant#4F3032
Hover, pressed, headers
Light variant#F5EFEF
Selected rows, tints
Dark surface#231516
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #331f20

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#1F3332
Analogous left#331F2A
Analogous right#33281F
Split-complement 1#1F3328
Split-complement 2#1F2A33
Triadic 1#20331F
Triadic 2#1F2033
Tetradic#2A331F

RGB percentages

Red20.0%
Green12.2%
Blue12.5%

CMYK percentages

Cyan0.0%
Magenta39.2%
Yellow37.3%
Key (black)80.0%

Color previews

#331f20 text on a black background

contrast 1.36:1

Card sample

#331f20 text on a white background

contrast 15.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #331f20

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#331f20 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Food and drinkEntertainmentRetailSport
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#331f20, answered

What color is #331f20?

#331f20 is a deep soft red, closest to Black (ΔE2000 14.3). It sits at 357° on the hue wheel with 24% saturation and 16% lightness, which reads as warm.

What is the RGB value of #331f20?

rgb(51, 31, 32) — 51 red, 31 green and 32 blue out of 255, or 20% / 12.2% / 12.5% by channel.

Is #331f20 a light or a dark color?

It is a dark color. Relative luminance is 0.0179 and perceived brightness is 15%, so white text on it reaches 15.47:1.

Should I use black or white text on #331f20?

White. It scores 15.47:1 against #331f20, versus 1.36:1 for black — AAA at any size.

What is the complementary color of #331f20?

#1F3332 sits directly opposite on the wheel. Softer options are the split-complements #1F3328 and #1F2A33, which give the same contrast with far less vibration.

What colors go well with #331f20?

For interface work: #F9F5F6 as the surface, #E0CCCD for borders, #8F575A for secondary text, #1D352E as an accent and #4F3032 for hover and pressed states. For a palette, the analogous pair #331F2A and #33281F stays calm, while #1F3332 is the loudest partner.

What is #331f20 in CMYK for printing?

cmyk(0%, 39%, 37%, 80%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #331f20 warm or cool?

Warm — it scores 28 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #33251F; nudged cooler, #341E27.

Work with #331f20 in the Color Lab