Skip to content

#310a21

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

RGB
49, 10, 33
HSL
325°, 66%, 12%
CMYK
0, 80, 33, 81
Luminance
0.0098

At a glance

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

Hex
#310a21
Hue
325°
magenta / pink
Saturation
66%
vivid
Lightness
12%
deep
Brightness
19%
HSV value
Perceived
12%
weighted brightness
Luminance
0.0098
WCAG relative
Temperature
Warm
36/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
17.56:1
Closest name
Black
ΔE2000 19.8
Where it sits
Hue325° of 360°
Saturation66%
Lightness12%
Temperature
Warm ← → Cool36% 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#310a21
RGBrgb(49, 10, 33)
HSLhsl(325, 66%, 12%)
CMYKcmyk(0%, 80%, 33%, 81%)
LABlab(8.8 22.5 -5.6)
LCHlch(8.8 23.1 346.0)
OKLCHoklch(0.223 0.070 347.8)
Decimal3213857
Display P3color(display-p3 0.192 0.039 0.129)

Copy-ready code

/* CSS */
color: #310a21;
background-color: #310a21;
/* Tailwind (arbitrary) */
class="text-[#310a21] bg-[#310a21]"
/* SCSS */
$brand: #310a21;
/* SwiftUI */
Color(red: 0.192, green: 0.039, blue: 0.129)
/* Android */
Color.parseColor("#310a21")
/* Flutter */
Color(0xFF310A21)
/* Python / OpenCV (BGR) */
(33, 10, 49)

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 #310a21 · 17.56:1
Use #ffffffAAA at every size.
Aa
White text · 17.56:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.20:1
AA fail · AA large fail · AAA fail
Reading the other direction: #310a21 as text scores 17.56:1 on white and 1.20:1 on black.

Accessibility — WCAG contrast

Aa
#310a21 on white: 17.56:1
AA ✓ pass · AA-large · AAA
Aa
#310a21 on black: 1.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0F1522
deuteranopia · #1A1C20
tritanopia · #350914

Color scale — 50 to 950

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

#FBF3F8
#F8E8F1
#F1CBE1
#ECA2CE
#E273B5
#D9459C
#CB2989
#A92372
#881C5B
#621844
#310a21
Base = 950Lightest = 50 · #FBF3F8Darkest = 950 · #310a21
:root {
  --brand-50: #FBF3F8;
  --brand-100: #F8E8F1;
  --brand-200: #F1CBE1;
  --brand-300: #ECA2CE;
  --brand-400: #E273B5;
  --brand-500: #D9459C;
  --brand-600: #CB2989;
  --brand-700: #A92372;
  --brand-800: #881C5B;
  --brand-900: #621844;
  --brand-950: #310a21;
  --brand: #310a21;
  --brand-ink: #ffffff;
}

Colors that work with #310a21

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#FAF4F8
Tinted page background
Border#EDC0DA
Hairlines and dividers
Muted text#9B4B7A
Captions on the surface
Accent#09320F
Second voice, not a rival
Dark variant#6A1647
Hover, pressed, headers
Light variant#FBEAF4
Selected rows, tints
Dark surface#24141E
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 #310a21

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#0A311A
Analogous left#2E0A31
Analogous right#310A0E
Split-complement 1#0E310A
Split-complement 2#0A312E
Triadic 1#21310A
Triadic 2#0A2131
Tetradic#312E0A

RGB percentages

Red19.2%
Green3.9%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta79.6%
Yellow32.7%
Key (black)80.8%

Color previews

#310a21 text on a black background

contrast 1.20:1

Card sample

#310a21 text on a white background

contrast 17.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #310a21;
Background color
Panel with #310a21 background
background-color: #310a21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #310a21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(49, 10, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 10, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #310a21;
background: linear-gradient(135deg, #310a21, #310D0A);

Monochromatic scale

Palettes built from #310a21

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.

#310a21 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.

#310a21, answered

What color is #310a21?

#310a21 is a deep vivid magenta / pink, closest to Black (ΔE2000 19.8). It sits at 325° on the hue wheel with 66% saturation and 12% lightness, which reads as warm.

What is the RGB value of #310a21?

rgb(49, 10, 33) — 49 red, 10 green and 33 blue out of 255, or 19.2% / 3.9% / 12.9% by channel.

Is #310a21 a light or a dark color?

It is a dark color. Relative luminance is 0.0098 and perceived brightness is 12%, so white text on it reaches 17.56:1.

Should I use black or white text on #310a21?

White. It scores 17.56:1 against #310a21, versus 1.20:1 for black — AAA at any size.

What is the complementary color of #310a21?

#0A311A sits directly opposite on the wheel. Softer options are the split-complements #0E310A and #0A312E, which give the same contrast with far less vibration.

What colors go well with #310a21?

For interface work: #FAF4F8 as the surface, #EDC0DA for borders, #9B4B7A for secondary text, #09320F as an accent and #6A1647 for hover and pressed states. For a palette, the analogous pair #2E0A31 and #310A0E stays calm, while #0A311A is the loudest partner.

What is #310a21 in CMYK for printing?

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

Is #310a21 warm or cool?

Warm — it scores 36 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #310A13; nudged cooler, #320930.

Work with #310a21 in the Color Lab