Skip to content

#331b1f

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

RGB
51, 27, 31
HSL
350°, 31%, 15%
CMYK
0, 47, 39, 80
Luminance
0.0159

At a glance

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

Hex
#331b1f
Hue
350°
red
Saturation
31%
soft
Lightness
15%
deep
Brightness
20%
HSV value
Perceived
14%
weighted brightness
Luminance
0.0159
WCAG relative
Temperature
Warm
26/100 cool
Color family
Red
Tone
Soft
Best ink
White
15.94:1
Closest name
Black
ΔE2000 15.5
Where it sits
Hue350° of 360°
Saturation31%
Lightness15%
Temperature
Warm ← → Cool26% 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#331b1f
RGBrgb(51, 27, 31)
HSLhsl(350, 31%, 15%)
CMYKcmyk(0%, 47%, 39%, 80%)
LABlab(13.2 12.5 2.4)
LCHlch(13.2 12.7 10.6)
OKLCHoklch(0.256 0.038 9.4)
Decimal3349279
Display P3color(display-p3 0.200 0.106 0.122)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#331b1f on white: 15.94:1
AA ✓ pass · AA-large · AAA
Aa
#331b1f on black: 1.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1F1F1F
deuteranopia · #25241F
tritanopia · #37191C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #331b1f 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
#F3ECED
#E7D5D8
#D8B6BB
#C5919A
#B16C78
#A05561
#854751
#6B3841
#4F2C32
#331b1f
Base = 950Lightest = 50 · #F9F6F6Darkest = 950 · #331b1f
:root {
  --brand-50: #F9F6F6;
  --brand-100: #F3ECED;
  --brand-200: #E7D5D8;
  --brand-300: #D8B6BB;
  --brand-400: #C5919A;
  --brand-500: #B16C78;
  --brand-600: #A05561;
  --brand-700: #854751;
  --brand-800: #6B3841;
  --brand-900: #4F2C32;
  --brand-950: #331b1f;
  --brand: #331b1f;
  --brand-ink: #ffffff;
}

Colors that work with #331b1f

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#FAF5F6
Tinted page background
Border#E3CACE
Hairlines and dividers
Muted text#964F5B
Captions on the surface
Accent#193529
Second voice, not a rival
Dark variant#532C33
Hover, pressed, headers
Light variant#F6EEF0
Selected rows, tints
Dark surface#241416
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 #331b1f

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#1B332F
Analogous left#331B2B
Analogous right#33231B
Split-complement 1#1B3323
Split-complement 2#1B2B33
Triadic 1#1F331B
Triadic 2#1B1F33
Tetradic#2B331B

RGB percentages

Red20.0%
Green10.6%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta47.1%
Yellow39.2%
Key (black)80.0%

Color previews

#331b1f text on a black background

contrast 1.32:1

Card sample

#331b1f text on a white background

contrast 15.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #331b1f

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.

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

#331b1f, answered

What color is #331b1f?

#331b1f is a deep soft red, closest to Black (ΔE2000 15.5). It sits at 350° on the hue wheel with 31% saturation and 15% lightness, which reads as warm.

What is the RGB value of #331b1f?

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

Is #331b1f a light or a dark color?

It is a dark color. Relative luminance is 0.0159 and perceived brightness is 14%, so white text on it reaches 15.94:1.

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

White. It scores 15.94:1 against #331b1f, versus 1.32:1 for black — AAA at any size.

What is the complementary color of #331b1f?

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

What colors go well with #331b1f?

For interface work: #FAF5F6 as the surface, #E3CACE for borders, #964F5B for secondary text, #193529 as an accent and #532C33 for hover and pressed states. For a palette, the analogous pair #331B2B and #33231B stays calm, while #1B332F is the loudest partner.

What is #331b1f in CMYK for printing?

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

Is #331b1f warm or cool?

Warm — it scores 26 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #33201B; nudged cooler, #341A28.

Work with #331b1f in the Color Lab