Skip to content

#210c2d

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

RGB
33, 12, 45
HSL
278°, 58%, 11%
CMYK
27, 73, 0, 82
Luminance
0.0078

At a glance

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

Hex
#210c2d
Hue
278°
violet
Saturation
58%
vivid
Lightness
11%
deep
Brightness
18%
HSV value
Perceived
10%
weighted brightness
Luminance
0.0078
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
18.18:1
Closest name
Midnight Blue
ΔE2000 15.1
Where it sits
Hue278° of 360°
Saturation58%
Lightness11%
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#210c2d
RGBrgb(33, 12, 45)
HSLhsl(278, 58%, 11%)
CMYKcmyk(27%, 73%, 0%, 82%)
LABlab(7.0 18.3 -17.7)
LCHlch(7.0 25.4 316.0)
OKLCHoklch(0.206 0.066 311.3)
Decimal2165805
Display P3color(display-p3 0.129 0.047 0.176)

Copy-ready code

/* CSS */
color: #210c2d;
background-color: #210c2d;
/* Tailwind (arbitrary) */
class="text-[#210c2d] bg-[#210c2d]"
/* SCSS */
$brand: #210c2d;
/* SwiftUI */
Color(red: 0.129, green: 0.047, blue: 0.176)
/* Android */
Color.parseColor("#210c2d")
/* Flutter */
Color(0xFF210C2D)
/* Python / OpenCV (BGR) */
(45, 12, 33)

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

Accessibility — WCAG contrast

Aa
#210c2d on white: 18.18:1
AA ✓ pass · AA-large · AAA
Aa
#210c2d on black: 1.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #03142E
deuteranopia · #09162C
tritanopia · #20121A

Color scale — 50 to 950

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

#F8F4FB
#F2E9F7
#E2CDEF
#D0A6E7
#B87ADC
#A14ED0
#8E34C1
#762BA1
#5F2281
#461D5E
#210c2d
Base = 950Lightest = 50 · #F8F4FBDarkest = 950 · #210c2d
:root {
  --brand-50: #F8F4FB;
  --brand-100: #F2E9F7;
  --brand-200: #E2CDEF;
  --brand-300: #D0A6E7;
  --brand-400: #B87ADC;
  --brand-500: #A14ED0;
  --brand-600: #8E34C1;
  --brand-700: #762BA1;
  --brand-800: #5F2281;
  --brand-900: #461D5E;
  --brand-950: #210c2d;
  --brand: #210c2d;
  --brand-ink: #ffffff;
}

Colors that work with #210c2d

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#DCC0ED
Hairlines and dividers
Muted text#7E4B9B
Captions on the surface
Accent#212E0B
Second voice, not a rival
Dark variant#4A1B65
Hover, pressed, headers
Light variant#F4EBFA
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 #210c2d

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#182D0C
Analogous left#110C2D
Analogous right#2D0C29
Split-complement 1#292D0C
Split-complement 2#0C2D11
Triadic 1#2D210C
Triadic 2#0C2D21
Tetradic#2D110C

RGB percentages

Red12.9%
Green4.7%
Blue17.6%

CMYK percentages

Cyan26.7%
Magenta73.3%
Yellow0.0%
Key (black)82.4%

Color previews

#210c2d text on a black background

contrast 1.16:1

Card sample

#210c2d text on a white background

contrast 18.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #210c2d;
Background color
Panel with #210c2d background
background-color: #210c2d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #210c2d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(33, 12, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 12, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #210c2d;
background: linear-gradient(135deg, #210c2d, #2D0C23);

Monochromatic scale

Palettes built from #210c2d

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.

#210c2d 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.

#210c2d, answered

What color is #210c2d?

#210c2d is a deep vivid violet, closest to Midnight Blue (ΔE2000 15.1). It sits at 278° on the hue wheel with 58% saturation and 11% lightness, which reads as cool.

What is the RGB value of #210c2d?

rgb(33, 12, 45) — 33 red, 12 green and 45 blue out of 255, or 12.9% / 4.7% / 17.6% by channel.

Is #210c2d a light or a dark color?

It is a dark color. Relative luminance is 0.0078 and perceived brightness is 10%, so white text on it reaches 18.18:1.

Should I use black or white text on #210c2d?

White. It scores 18.18:1 against #210c2d, versus 1.16:1 for black — AAA at any size.

What is the complementary color of #210c2d?

#182D0C sits directly opposite on the wheel. Softer options are the split-complements #292D0C and #0C2D11, which give the same contrast with far less vibration.

What colors go well with #210c2d?

For interface work: #F8F4FA as the surface, #DCC0ED for borders, #7E4B9B for secondary text, #212E0B as an accent and #4A1B65 for hover and pressed states. For a palette, the analogous pair #110C2D and #2D0C29 stays calm, while #182D0C is the loudest partner.

What is #210c2d in CMYK for printing?

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

Is #210c2d 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 #2D0C2D; nudged cooler, #150B2E.

Work with #210c2d in the Color Lab