Skip to content

#2c0c39

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

RGB
44, 12, 57
HSL
283°, 65%, 14%
CMYK
23, 79, 0, 78
Luminance
0.0109

At a glance

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

Hex
#2c0c39
Hue
283°
violet
Saturation
65%
vivid
Lightness
14%
deep
Brightness
22%
HSV value
Perceived
13%
weighted brightness
Luminance
0.0109
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
17.23:1
Closest name
Midnight Blue
ΔE2000 13.1
Where it sits
Hue283° of 360°
Saturation65%
Lightness14%
Temperature
Warm ← → Cool60% 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#2c0c39
RGBrgb(44, 12, 57)
HSLhsl(283, 65%, 14%)
CMYKcmyk(23%, 79%, 0%, 78%)
LABlab(9.8 24.9 -22.0)
LCHlch(9.8 33.2 318.6)
OKLCHoklch(0.233 0.087 314.5)
Decimal2886713
Display P3color(display-p3 0.173 0.047 0.224)

Copy-ready code

/* CSS */
color: #2c0c39;
background-color: #2c0c39;
/* Tailwind (arbitrary) */
class="text-[#2c0c39] bg-[#2c0c39]"
/* SCSS */
$brand: #2c0c39;
/* SwiftUI */
Color(red: 0.173, green: 0.047, blue: 0.224)
/* Android */
Color.parseColor("#2c0c39")
/* Flutter */
Color(0xFF2C0C39)
/* Python / OpenCV (BGR) */
(57, 12, 44)

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

Accessibility — WCAG contrast

Aa
#2c0c39 on white: 17.23:1
AA ✓ pass · AA-large · AAA
Aa
#2c0c39 on black: 1.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00193A
deuteranopia · #0A1C38
tritanopia · #2B1521

Color scale — 50 to 950

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

#F9F3FB
#F3E8F7
#E6CBF1
#D6A2EB
#C274E2
#AE46D8
#9C2BCA
#8223A9
#681C87
#4D1862
#2c0c39
Base = 950Lightest = 50 · #F9F3FBDarkest = 950 · #2c0c39
:root {
  --brand-50: #F9F3FB;
  --brand-100: #F3E8F7;
  --brand-200: #E6CBF1;
  --brand-300: #D6A2EB;
  --brand-400: #C274E2;
  --brand-500: #AE46D8;
  --brand-600: #9C2BCA;
  --brand-700: #8223A9;
  --brand-800: #681C87;
  --brand-900: #4D1862;
  --brand-950: #2c0c39;
  --brand: #2c0c39;
  --brand-ink: #ffffff;
}

Colors that work with #2c0c39

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#F9F4FA
Tinted page background
Border#E0C0ED
Hairlines and dividers
Muted text#844B9B
Captions on the surface
Accent#243A0B
Second voice, not a rival
Dark variant#511669
Hover, pressed, headers
Light variant#F6EAFB
Selected rows, tints
Dark surface#201424
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 #2c0c39

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#19390C
Analogous left#150C39
Analogous right#390C2F
Split-complement 1#2F390C
Split-complement 2#0C3915
Triadic 1#392C0C
Triadic 2#0C392C
Tetradic#39150C

RGB percentages

Red17.3%
Green4.7%
Blue22.4%

CMYK percentages

Cyan22.8%
Magenta78.9%
Yellow0.0%
Key (black)77.6%

Color previews

#2c0c39 text on a black background

contrast 1.22:1

Card sample

#2c0c39 text on a white background

contrast 17.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2c0c39;
Background color
Panel with #2c0c39 background
background-color: #2c0c39;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 12, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 12, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c0c39;
background: linear-gradient(135deg, #2c0c39, #390C28);

Monochromatic scale

Palettes built from #2c0c39

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.

#2c0c39 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.

#2c0c39, answered

What color is #2c0c39?

#2c0c39 is a deep vivid violet, closest to Midnight Blue (ΔE2000 13.1). It sits at 283° on the hue wheel with 65% saturation and 14% lightness, which reads as cool.

What is the RGB value of #2c0c39?

rgb(44, 12, 57) — 44 red, 12 green and 57 blue out of 255, or 17.3% / 4.7% / 22.4% by channel.

Is #2c0c39 a light or a dark color?

It is a dark color. Relative luminance is 0.0109 and perceived brightness is 13%, so white text on it reaches 17.23:1.

Should I use black or white text on #2c0c39?

White. It scores 17.23:1 against #2c0c39, versus 1.22:1 for black — AAA at any size.

What is the complementary color of #2c0c39?

#19390C sits directly opposite on the wheel. Softer options are the split-complements #2F390C and #0C3915, which give the same contrast with far less vibration.

What colors go well with #2c0c39?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #844B9B for secondary text, #243A0B as an accent and #511669 for hover and pressed states. For a palette, the analogous pair #150C39 and #390C2F stays calm, while #19390C is the loudest partner.

What is #2c0c39 in CMYK for printing?

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

Is #2c0c39 warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #390C35; nudged cooler, #1B0B3A.

Work with #2c0c39 in the Color Lab