Skip to content

#2c034e

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

RGB
44, 3, 78
HSL
273°, 93%, 16%
CMYK
44, 96, 0, 69
Luminance
0.0115

At a glance

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

Hex
#2c034e
Hue
273°
violet
Saturation
93%
electric
Lightness
16%
deep
Brightness
31%
HSV value
Perceived
14%
weighted brightness
Luminance
0.0115
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Electric
Best ink
White
17.07:1
Closest name
Midnight Blue
ΔE2000 8.7
Where it sits
Hue273° of 360°
Saturation93%
Lightness16%
Temperature
Warm ← → Cool65% 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#2c034e
RGBrgb(44, 3, 78)
HSLhsl(273, 93%, 16%)
CMYKcmyk(44%, 96%, 0%, 69%)
LABlab(10.2 34.7 -36.1)
LCHlch(10.2 50.1 313.9)
OKLCHoklch(0.242 0.122 302.1)
Decimal2884430
Display P3color(display-p3 0.173 0.012 0.306)

Copy-ready code

/* CSS */
color: #2c034e;
background-color: #2c034e;
/* Tailwind (arbitrary) */
class="text-[#2c034e] bg-[#2c034e]"
/* SCSS */
$brand: #2c034e;
/* SwiftUI */
Color(red: 0.173, green: 0.012, blue: 0.306)
/* Android */
Color.parseColor("#2c034e")
/* Flutter */
Color(0xFF2C034E)
/* Python / OpenCV (BGR) */
(78, 3, 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 #2c034e · 17.07:1
Use #ffffffAAA at every size.
Aa
White text · 17.07:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.23:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2c034e as text scores 17.07:1 on white and 1.23:1 on black.

Accessibility — WCAG contrast

Aa
#2c034e on white: 17.07:1
AA ✓ pass · AA-large · AAA
Aa
#2c034e on black: 1.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #001B50
deuteranopia · #001B4D
tritanopia · #241A2B

Color scale — 50 to 950

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

#F8F2FD
#F1E4FB
#E0C2F9
#CC93FB
#B25DF9
#9827F7
#8509EC
#6F08C4
#59069D
#420971
#2c034e
Base = 950Lightest = 50 · #F8F2FDDarkest = 950 · #2c034e
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F1E4FB;
  --brand-200: #E0C2F9;
  --brand-300: #CC93FB;
  --brand-400: #B25DF9;
  --brand-500: #9827F7;
  --brand-600: #8509EC;
  --brand-700: #6F08C4;
  --brand-800: #59069D;
  --brand-900: #420971;
  --brand-950: #2c034e;
  --brand: #2c034e;
  --brand-ink: #ffffff;
}

Colors that work with #2c034e

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#D8C0ED
Hairlines and dividers
Muted text#764B9B
Captions on the surface
Accent#385001
Second voice, not a rival
Dark variant#45057B
Hover, pressed, headers
Light variant#F3E6FE
Selected rows, tints
Dark surface#1D1424
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 #2c034e

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#254E03
Analogous left#07034E
Analogous right#4E034B
Split-complement 1#4B4E03
Split-complement 2#034E07
Triadic 1#4E2C03
Triadic 2#034E2C
Tetradic#4E0703

RGB percentages

Red17.3%
Green1.2%
Blue30.6%

CMYK percentages

Cyan43.6%
Magenta96.2%
Yellow0.0%
Key (black)69.4%

Color previews

#2c034e text on a black background

contrast 1.23:1

Card sample

#2c034e text on a white background

contrast 17.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c034e

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.

#2c034e 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2c034e, answered

What color is #2c034e?

#2c034e is a deep electric violet, closest to Midnight Blue (ΔE2000 8.7). It sits at 273° on the hue wheel with 93% saturation and 16% lightness, which reads as cool.

What is the RGB value of #2c034e?

rgb(44, 3, 78) — 44 red, 3 green and 78 blue out of 255, or 17.3% / 1.2% / 30.6% by channel.

Is #2c034e a light or a dark color?

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

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

White. It scores 17.07:1 against #2c034e, versus 1.23:1 for black — AAA at any size.

What is the complementary color of #2c034e?

#254E03 sits directly opposite on the wheel. Softer options are the split-complements #4B4E03 and #034E07, which give the same contrast with far less vibration.

What colors go well with #2c034e?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #764B9B for secondary text, #385001 as an accent and #45057B for hover and pressed states. For a palette, the analogous pair #07034E and #4E034B stays calm, while #254E03 is the loudest partner.

What is #2c034e in CMYK for printing?

cmyk(44%, 96%, 0%, 69%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2c034e warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #48034E; nudged cooler, #10024F.

Work with #2c034e in the Color Lab