Skip to content

#1c0150

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

RGB
28, 1, 80
HSL
261°, 98%, 16%
CMYK
65, 99, 0, 69
Luminance
0.0085

At a glance

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

Hex
#1c0150
Hue
261°
violet
Saturation
98%
electric
Lightness
16%
deep
Brightness
31%
HSV value
Perceived
12%
weighted brightness
Luminance
0.0085
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Electric
Best ink
White
17.96:1
Closest name
Midnight Blue
ΔE2000 7.3
Where it sits
Hue261° of 360°
Saturation98%
Lightness16%
Temperature
Warm ← → Cool72% 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#1c0150
RGBrgb(28, 1, 80)
HSLhsl(261, 98%, 16%)
CMYKcmyk(65%, 99%, 0%, 69%)
LABlab(7.7 34.6 -41.7)
LCHlch(7.7 54.2 309.7)
OKLCHoklch(0.220 0.125 286.5)
Decimal1835344
Display P3color(display-p3 0.110 0.004 0.314)

Copy-ready code

/* CSS */
color: #1c0150;
background-color: #1c0150;
/* Tailwind (arbitrary) */
class="text-[#1c0150] bg-[#1c0150]"
/* SCSS */
$brand: #1c0150;
/* SwiftUI */
Color(red: 0.110, green: 0.004, blue: 0.314)
/* Android */
Color.parseColor("#1c0150")
/* Flutter */
Color(0xFF1C0150)
/* Python / OpenCV (BGR) */
(80, 1, 28)

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

Accessibility — WCAG contrast

Aa
#1c0150 on white: 17.96:1
AA ✓ pass · AA-large · AAA
Aa
#1c0150 on black: 1.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #001952
deuteranopia · #00154F
tritanopia · #011B2B

Color scale — 50 to 950

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

#F5F1FD
#ECE4FC
#D5C1FB
#B690FE
#9159FD
#6C21FC
#5503F2
#4703C9
#3802A1
#2C0674
#1c0150
Base = 950Lightest = 50 · #F5F1FDDarkest = 950 · #1c0150
:root {
  --brand-50: #F5F1FD;
  --brand-100: #ECE4FC;
  --brand-200: #D5C1FB;
  --brand-300: #B690FE;
  --brand-400: #9159FD;
  --brand-500: #6C21FC;
  --brand-600: #5503F2;
  --brand-700: #4703C9;
  --brand-800: #3802A1;
  --brand-900: #2C0674;
  --brand-950: #1c0150;
  --brand: #1c0150;
  --brand-ink: #ffffff;
}

Colors that work with #1c0150

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#CFC0ED
Hairlines and dividers
Muted text#664B9B
Captions on the surface
Accent#4A5100
Second voice, not a rival
Dark variant#2C027E
Hover, pressed, headers
Light variant#EEE6FF
Selected rows, tints
Dark surface#191424
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 #1c0150

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#355001
Analogous left#010E50
Analogous right#440150
Split-complement 1#504401
Split-complement 2#0E5001
Triadic 1#501C01
Triadic 2#01501C
Tetradic#50010E

RGB percentages

Red11.0%
Green0.4%
Blue31.4%

CMYK percentages

Cyan65.0%
Magenta98.8%
Yellow0.0%
Key (black)68.6%

Color previews

#1c0150 text on a black background

contrast 1.17:1

Card sample

#1c0150 text on a white background

contrast 17.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1c0150;
Background color
Panel with #1c0150 background
background-color: #1c0150;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(28, 1, 80, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(28, 1, 80, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1c0150;
background: linear-gradient(135deg, #1c0150, #50014F);

Monochromatic scale

Palettes built from #1c0150

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.

#1c0150 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.

#1c0150, answered

What color is #1c0150?

#1c0150 is a deep electric violet, closest to Midnight Blue (ΔE2000 7.3). It sits at 261° on the hue wheel with 98% saturation and 16% lightness, which reads as cool.

What is the RGB value of #1c0150?

rgb(28, 1, 80) — 28 red, 1 green and 80 blue out of 255, or 11% / 0.4% / 31.4% by channel.

Is #1c0150 a light or a dark color?

It is a dark color. Relative luminance is 0.0085 and perceived brightness is 12%, so white text on it reaches 17.96:1.

Should I use black or white text on #1c0150?

White. It scores 17.96:1 against #1c0150, versus 1.17:1 for black — AAA at any size.

What is the complementary color of #1c0150?

#355001 sits directly opposite on the wheel. Softer options are the split-complements #504401 and #0E5001, which give the same contrast with far less vibration.

What colors go well with #1c0150?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #664B9B for secondary text, #4A5100 as an accent and #2C027E for hover and pressed states. For a palette, the analogous pair #010E50 and #440150 stays calm, while #355001 is the loudest partner.

What is #1c0150 in CMYK for printing?

cmyk(65%, 99%, 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 #1c0150 warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #390150; nudged cooler, #000251.

Work with #1c0150 in the Color Lab