Skip to content

#331f1d

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

RGB
51, 31, 29
HSL
6°, 28%, 16%
CMYK
0, 39, 43, 80
Luminance
0.0177

At a glance

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

Hex
#331f1d
Hue
red
Saturation
28%
soft
Lightness
16%
deep
Brightness
20%
HSV value
Perceived
15%
weighted brightness
Luminance
0.0177
WCAG relative
Temperature
Warm
21/100 cool
Color family
Red
Tone
Soft
Best ink
White
15.50:1
Closest name
Black
ΔE2000 14.2
Where it sits
Hue6° of 360°
Saturation28%
Lightness16%
Temperature
Warm ← → Cool21% 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#331f1d
RGBrgb(51, 31, 29)
HSLhsl(6, 28%, 16%)
CMYKcmyk(0%, 39%, 43%, 80%)
LABlab(14.3 9.4 5.3)
LCHlch(14.3 10.8 29.6)
OKLCHoklch(0.264 0.032 25.7)
Decimal3350301
Display P3color(display-p3 0.200 0.122 0.114)

Copy-ready code

/* CSS */
color: #331f1d;
background-color: #331f1d;
/* Tailwind (arbitrary) */
class="text-[#331f1d] bg-[#331f1d]"
/* SCSS */
$brand: #331f1d;
/* SwiftUI */
Color(red: 0.200, green: 0.122, blue: 0.114)
/* Android */
Color.parseColor("#331f1d")
/* Flutter */
Color(0xFF331F1D)
/* Python / OpenCV (BGR) */
(29, 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 #331f1d · 15.50:1
Use #ffffffAAA at every size.
Aa
White text · 15.50:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.35:1
AA fail · AA large fail · AAA fail
Reading the other direction: #331f1d as text scores 15.50:1 on white and 1.35:1 on black.

Accessibility — WCAG contrast

Aa
#331f1d on white: 15.50:1
AA ✓ pass · AA-large · AAA
Aa
#331f1d on black: 1.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #23221D
deuteranopia · #28261D
tritanopia · #371D1F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #331f1d 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
#F3EDEC
#E6D7D6
#D6BAB7
#C29894
#AE7670
#9C5F59
#824F4A
#683F3B
#4D312E
#331f1d
Base = 950Lightest = 50 · #F9F6F6Darkest = 950 · #331f1d
:root {
  --brand-50: #F9F6F6;
  --brand-100: #F3EDEC;
  --brand-200: #E6D7D6;
  --brand-300: #D6BAB7;
  --brand-400: #C29894;
  --brand-500: #AE7670;
  --brand-600: #9C5F59;
  --brand-700: #824F4A;
  --brand-800: #683F3B;
  --brand-900: #4D312E;
  --brand-950: #331f1d;
  --brand: #331f1d;
  --brand-ink: #ffffff;
}

Colors that work with #331f1d

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#F9F6F5
Tinted page background
Border#E1CDCB
Hairlines and dividers
Muted text#925953
Captions on the surface
Accent#1B3531
Second voice, not a rival
Dark variant#51312E
Hover, pressed, headers
Light variant#F6EFEF
Selected rows, tints
Dark surface#241614
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 #331f1d

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#1D3133
Analogous left#331D26
Analogous right#332A1D
Split-complement 1#1D332A
Split-complement 2#1D2633
Triadic 1#1D331F
Triadic 2#1F1D33
Tetradic#26331D

RGB percentages

Red20.0%
Green12.2%
Blue11.4%

CMYK percentages

Cyan0.0%
Magenta39.2%
Yellow43.1%
Key (black)80.0%

Color previews

#331f1d text on a black background

contrast 1.35:1

Card sample

#331f1d text on a white background

contrast 15.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #331f1d

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.

#331f1d 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.

#331f1d, answered

What color is #331f1d?

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

What is the RGB value of #331f1d?

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

Is #331f1d a light or a dark color?

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

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

White. It scores 15.50:1 against #331f1d, versus 1.35:1 for black — AAA at any size.

What is the complementary color of #331f1d?

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

What colors go well with #331f1d?

For interface work: #F9F6F5 as the surface, #E1CDCB for borders, #925953 for secondary text, #1B3531 as an accent and #51312E for hover and pressed states. For a palette, the analogous pair #331D26 and #332A1D stays calm, while #1D3133 is the loudest partner.

What is #331f1d in CMYK for printing?

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

Is #331f1d warm or cool?

Warm — it scores 21 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #33261D; nudged cooler, #341C23.

Work with #331f1d in the Color Lab