Skip to content

#2c0197

a dark, electric violet · cool · closest name: Dark Blue

RGB
44, 1, 151
HSL
257°, 99%, 30%
CMYK
71, 99, 0, 41
Luminance
0.0279

At a glance

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

Hex
#2c0197
Hue
257°
violet
Saturation
99%
electric
Lightness
30%
dark
Brightness
59%
HSV value
Perceived
22%
weighted brightness
Luminance
0.0279
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
White
13.48:1
Closest name
Dark Blue
ΔE2000 3.4
Where it sits
Hue257° of 360°
Saturation99%
Lightness30%
Temperature
Warm ← → Cool74% 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#2c0197
RGBrgb(44, 1, 151)
HSLhsl(257, 99%, 30%)
CMYKcmyk(71%, 99%, 0%, 41%)
LABlab(19.2 54.2 -68.7)
LCHlch(19.2 87.5 308.3)
OKLCHoklch(0.329 0.200 278.5)
Decimal2883991
Display P3color(display-p3 0.173 0.004 0.592)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c0197 on white: 13.48:1
AA ✓ pass · AA-large · AAA
Aa
#2c0197 on black: 1.56:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00349A
deuteranopia · #002995
tritanopia · #003B57

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2c0197 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5F1FE
#EAE3FC
#D1C0FB
#AF90FE
#8758FE
#6020FE
#4702F3
#3B01CB
#2c0197
#250675
#170449
Base = 800Lightest = 50 · #F5F1FEDarkest = 950 · #170449
:root {
  --brand-50: #F5F1FE;
  --brand-100: #EAE3FC;
  --brand-200: #D1C0FB;
  --brand-300: #AF90FE;
  --brand-400: #8758FE;
  --brand-500: #6020FE;
  --brand-600: #4702F3;
  --brand-700: #3B01CB;
  --brand-800: #2c0197;
  --brand-900: #250675;
  --brand-950: #170449;
  --brand: #2c0197;
  --brand-ink: #ffffff;
}

Colors that work with #2c0197

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#F6F4FA
Tinted page background
Border#CDC0ED
Hairlines and dividers
Muted text#624B9B
Captions on the surface
Accent#C4CC00
Second voice, not a rival
Dark variant#25017F
Hover, pressed, headers
Light variant#EDE6FF
Selected rows, tints
Dark surface#181424
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 #2c0197

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#6C9701
Analogous left#012197
Analogous right#770197
Split-complement 1#977701
Split-complement 2#219701
Triadic 1#972C01
Triadic 2#01972C
Tetradic#970121

RGB percentages

Red17.3%
Green0.4%
Blue59.2%

CMYK percentages

Cyan70.9%
Magenta99.3%
Yellow0.0%
Key (black)40.8%

Color previews

#2c0197 text on a black background

contrast 1.56:1

Card sample

#2c0197 text on a white background

contrast 13.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c0197

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.

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

#2c0197, answered

What color is #2c0197?

#2c0197 is a dark electric violet, closest to Dark Blue (ΔE2000 3.4). It sits at 257° on the hue wheel with 99% saturation and 30% lightness, which reads as cool.

What is the RGB value of #2c0197?

rgb(44, 1, 151) — 44 red, 1 green and 151 blue out of 255, or 17.3% / 0.4% / 59.2% by channel.

Is #2c0197 a light or a dark color?

It is a dark color. Relative luminance is 0.0279 and perceived brightness is 22%, so white text on it reaches 13.48:1.

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

White. It scores 13.48:1 against #2c0197, versus 1.56:1 for black — AAA at any size.

What is the complementary color of #2c0197?

#6C9701 sits directly opposite on the wheel. Softer options are the split-complements #977701 and #219701, which give the same contrast with far less vibration.

What colors go well with #2c0197?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #624B9B for secondary text, #C4CC00 as an accent and #25017F for hover and pressed states. For a palette, the analogous pair #012197 and #770197 stays calm, while #6C9701 is the loudest partner.

What is #2c0197 in CMYK for printing?

cmyk(71%, 99%, 0%, 41%). 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 #2c0197 warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #630197; nudged cooler, #000C98.

Work with #2c0197 in the Color Lab