Skip to content

#331f29

a deep, soft magenta / pink · warm · closest name: Black

RGB
51, 31, 41
HSL
330°, 24%, 16%
CMYK
0, 39, 20, 80
Luminance
0.0184

At a glance

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

Hex
#331f29
Hue
330°
magenta / pink
Saturation
24%
soft
Lightness
16%
deep
Brightness
20%
HSV value
Perceived
15%
weighted brightness
Luminance
0.0184
WCAG relative
Temperature
Warm
38/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
White
15.34:1
Closest name
Black
ΔE2000 15.4
Where it sits
Hue330° of 360°
Saturation24%
Lightness16%
Temperature
Warm ← → Cool38% 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#331f29
RGBrgb(51, 31, 41)
HSLhsl(330, 24%, 16%)
CMYKcmyk(0%, 39%, 20%, 80%)
LABlab(14.7 11.6 -2.7)
LCHlch(14.7 11.9 346.8)
OKLCHoklch(0.269 0.035 348.3)
Decimal3350313
Display P3color(display-p3 0.200 0.122 0.161)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#331f29 on white: 15.34:1
AA ✓ pass · AA-large · AAA
Aa
#331f29 on black: 1.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #212329
deuteranopia · #252628
tritanopia · #361F22

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #331f29 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.

#F9F6F7
#F3EDF0
#E5D7DE
#D5B9C7
#BF96AB
#AA738F
#985D7A
#7F4D66
#663E52
#4B2F3D
#331f29
Base = 950Lightest = 50 · #F9F6F7Darkest = 950 · #331f29
:root {
  --brand-50: #F9F6F7;
  --brand-100: #F3EDF0;
  --brand-200: #E5D7DE;
  --brand-300: #D5B9C7;
  --brand-400: #BF96AB;
  --brand-500: #AA738F;
  --brand-600: #985D7A;
  --brand-700: #7F4D66;
  --brand-800: #663E52;
  --brand-900: #4B2F3D;
  --brand-950: #331f29;
  --brand: #331f29;
  --brand-ink: #ffffff;
}

Colors that work with #331f29

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#F9F5F7
Tinted page background
Border#E0CCD6
Hairlines and dividers
Muted text#8F5773
Captions on the surface
Accent#1D3523
Second voice, not a rival
Dark variant#4F3040
Hover, pressed, headers
Light variant#F5EFF2
Selected rows, tints
Dark surface#23151C
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 #331f29

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#1F3329
Analogous left#331F33
Analogous right#331F1F
Split-complement 1#1F331F
Split-complement 2#1F3333
Triadic 1#29331F
Triadic 2#1F2933
Tetradic#33331F

RGB percentages

Red20.0%
Green12.2%
Blue16.1%

CMYK percentages

Cyan0.0%
Magenta39.2%
Yellow19.6%
Key (black)80.0%

Color previews

#331f29 text on a black background

contrast 1.37:1

Card sample

#331f29 text on a white background

contrast 15.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #331f29

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.

#331f29 in the real world

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

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#331f29, answered

What color is #331f29?

#331f29 is a deep soft magenta / pink, closest to Black (ΔE2000 15.4). It sits at 330° on the hue wheel with 24% saturation and 16% lightness, which reads as warm.

What is the RGB value of #331f29?

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

Is #331f29 a light or a dark color?

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

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

White. It scores 15.34:1 against #331f29, versus 1.37:1 for black — AAA at any size.

What is the complementary color of #331f29?

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

What colors go well with #331f29?

For interface work: #F9F5F7 as the surface, #E0CCD6 for borders, #8F5773 for secondary text, #1D3523 as an accent and #4F3040 for hover and pressed states. For a palette, the analogous pair #331F33 and #331F1F stays calm, while #1F3329 is the loudest partner.

What is #331f29 in CMYK for printing?

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

Is #331f29 warm or cool?

Warm — it scores 38 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #331F22; nudged cooler, #341E31.

Work with #331f29 in the Color Lab