Skip to content

#321c3f

a deep, soft violet · cool · closest name: Midnight Blue

RGB
50, 28, 63
HSL
278°, 39%, 18%
CMYK
21, 56, 0, 75
Luminance
0.0187

At a glance

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

Hex
#321c3f
Hue
278°
violet
Saturation
39%
soft
Lightness
18%
deep
Brightness
25%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0187
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Soft
Best ink
White
15.29:1
Closest name
Midnight Blue
ΔE2000 13.7
Where it sits
Hue278° of 360°
Saturation39%
Lightness18%
Temperature
Warm ← → Cool62% cool

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

Every format

HEX#321c3f
RGBrgb(50, 28, 63)
HSLhsl(278, 39%, 18%)
CMYKcmyk(21%, 56%, 0%, 75%)
LABlab(14.8 18.5 -18.2)
LCHlch(14.8 26.0 315.5)
OKLCHoklch(0.273 0.068 311.7)
Decimal3284031
Display P3color(display-p3 0.196 0.110 0.247)

Copy-ready code

/* CSS */
color: #321c3f;
background-color: #321c3f;
/* Tailwind (arbitrary) */
class="text-[#321c3f] bg-[#321c3f]"
/* SCSS */
$brand: #321c3f;
/* SwiftUI */
Color(red: 0.196, green: 0.110, blue: 0.247)
/* Android */
Color.parseColor("#321c3f")
/* Flutter */
Color(0xFF321C3F)
/* Python / OpenCV (BGR) */
(63, 28, 50)

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 #321c3f · 15.29:1
Use #ffffffAAA at every size.
Aa
White text · 15.29: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: #321c3f as text scores 15.29:1 on white and 1.37:1 on black.

Accessibility — WCAG contrast

Aa
#321c3f on white: 15.29:1
AA ✓ pass · AA-large · AAA
Aa
#321c3f on black: 1.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #142440
deuteranopia · #1A263E
tritanopia · #31222A

Color scale — 50 to 950

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

#F8F5FA
#F1EBF4
#E1D3E9
#CCB1DC
#B38ACB
#9A64BA
#864BAA
#703F8D
#5A3271
#432853
#321c3f
Base = 950Lightest = 50 · #F8F5FADarkest = 950 · #321c3f
:root {
  --brand-50: #F8F5FA;
  --brand-100: #F1EBF4;
  --brand-200: #E1D3E9;
  --brand-300: #CCB1DC;
  --brand-400: #B38ACB;
  --brand-500: #9A64BA;
  --brand-600: #864BAA;
  --brand-700: #703F8D;
  --brand-800: #5A3271;
  --brand-900: #432853;
  --brand-950: #321c3f;
  --brand: #321c3f;
  --brand-ink: #ffffff;
}

Colors that work with #321c3f

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#F8F4FA
Tinted page background
Border#DAC6E6
Hairlines and dividers
Muted text#7D4B9B
Captions on the surface
Accent#32411A
Second voice, not a rival
Dark variant#462758
Hover, pressed, headers
Light variant#F4EDF7
Selected rows, tints
Dark surface#1E1424
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 #321c3f

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#293F1C
Analogous left#201C3F
Analogous right#3F1C3A
Split-complement 1#3A3F1C
Split-complement 2#1C3F20
Triadic 1#3F321C
Triadic 2#1C3F32
Tetradic#3F201C

RGB percentages

Red19.6%
Green11.0%
Blue24.7%

CMYK percentages

Cyan20.6%
Magenta55.6%
Yellow0.0%
Key (black)75.3%

Color previews

#321c3f text on a black background

contrast 1.37:1

Card sample

#321c3f text on a white background

contrast 15.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #321c3f;
Background color
Panel with #321c3f background
background-color: #321c3f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #321c3f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(50, 28, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(50, 28, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #321c3f;
background: linear-gradient(135deg, #321c3f, #3F1C35);

Monochromatic scale

Palettes built from #321c3f

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.

#321c3f in the real world

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

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#321c3f, answered

What color is #321c3f?

#321c3f is a deep soft violet, closest to Midnight Blue (ΔE2000 13.7). It sits at 278° on the hue wheel with 39% saturation and 18% lightness, which reads as cool.

What is the RGB value of #321c3f?

rgb(50, 28, 63) — 50 red, 28 green and 63 blue out of 255, or 19.6% / 11% / 24.7% by channel.

Is #321c3f a light or a dark color?

It is a dark color. Relative luminance is 0.0187 and perceived brightness is 16%, so white text on it reaches 15.29:1.

Should I use black or white text on #321c3f?

White. It scores 15.29:1 against #321c3f, versus 1.37:1 for black — AAA at any size.

What is the complementary color of #321c3f?

#293F1C sits directly opposite on the wheel. Softer options are the split-complements #3A3F1C and #1C3F20, which give the same contrast with far less vibration.

What colors go well with #321c3f?

For interface work: #F8F4FA as the surface, #DAC6E6 for borders, #7D4B9B for secondary text, #32411A as an accent and #462758 for hover and pressed states. For a palette, the analogous pair #201C3F and #3F1C3A stays calm, while #293F1C is the loudest partner.

What is #321c3f in CMYK for printing?

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

Is #321c3f warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3F1C3F; nudged cooler, #251B40.

Work with #321c3f in the Color Lab