Skip to content

#4c01cf

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

RGB
76, 1, 207
HSL
262°, 99%, 41%
CMYK
63, 100, 0, 19
Luminance
0.0606

At a glance

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

Hex
#4c01cf
Hue
262°
violet
Saturation
99%
electric
Lightness
41%
dark
Brightness
81%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0606
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
9.49:1
Closest name
Medium Blue
ΔE2000 4.5
Where it sits
Hue262° of 360°
Saturation99%
Lightness41%
Temperature
Warm ← → Cool71% 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#4c01cf
RGBrgb(76, 1, 207)
HSLhsl(262, 99%, 41%)
CMYKcmyk(63%, 100%, 0%, 19%)
LABlab(29.6 69.2 -84.9)
LCHlch(29.6 109.5 309.2)
OKLCHoklch(0.426 0.251 283.3)
Decimal4981199
Display P3color(display-p3 0.298 0.004 0.812)

Copy-ready code

/* CSS */
color: #4c01cf;
background-color: #4c01cf;
/* Tailwind (arbitrary) */
class="text-[#4c01cf] bg-[#4c01cf]"
/* SCSS */
$brand: #4c01cf;
/* SwiftUI */
Color(red: 0.298, green: 0.004, blue: 0.812)
/* Android */
Color.parseColor("#4c01cf")
/* Flutter */
Color(0xFF4C01CF)
/* Python / OpenCV (BGR) */
(207, 1, 76)

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

Accessibility — WCAG contrast

Aa
#4c01cf on white: 9.49:1
AA ✓ pass · AA-large · AAA
Aa
#4c01cf on black: 2.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004BD4
deuteranopia · #003FCC
tritanopia · #005379

Color scale — 50 to 950

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

#F6F1FE
#ECE3FC
#D6C0FB
#B88FFE
#9458FE
#7020FE
#5901F4
#4c01cf
#3C01A2
#2E0575
#1D0349
Base = 700Lightest = 50 · #F6F1FEDarkest = 950 · #1D0349
:root {
  --brand-50: #F6F1FE;
  --brand-100: #ECE3FC;
  --brand-200: #D6C0FB;
  --brand-300: #B88FFE;
  --brand-400: #9458FE;
  --brand-500: #7020FE;
  --brand-600: #5901F4;
  --brand-700: #4c01cf;
  --brand-800: #3C01A2;
  --brand-900: #2E0575;
  --brand-950: #1D0349;
  --brand: #4c01cf;
  --brand-ink: #ffffff;
}

Colors that work with #4c01cf

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#F7F4FA
Tinted page background
Border#D0C0ED
Hairlines and dividers
Muted text#684B9B
Captions on the surface
Accent#B5CC00
Second voice, not a rival
Dark variant#2E017F
Hover, pressed, headers
Light variant#EFE6FF
Selected rows, tints
Dark surface#1A1424
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 #4c01cf

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#84CF01
Analogous left#011DCF
Analogous right#B301CF
Split-complement 1#CFB301
Split-complement 2#1DCF01
Triadic 1#CF4C01
Triadic 2#01CF4C
Tetradic#CF011D

RGB percentages

Red29.8%
Green0.4%
Blue81.2%

CMYK percentages

Cyan63.3%
Magenta99.5%
Yellow0.0%
Key (black)18.8%

Color previews

#4c01cf text on a black background

contrast 2.21:1

Card sample

#4c01cf text on a white background

contrast 9.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4c01cf;
Background color
Panel with #4c01cf background
background-color: #4c01cf;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(76, 1, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(76, 1, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4c01cf;
background: linear-gradient(135deg, #4c01cf, #CF01C9);

Monochromatic scale

Palettes built from #4c01cf

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.

#4c01cf 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.

#4c01cf, answered

What color is #4c01cf?

#4c01cf is a dark electric violet, closest to Medium Blue (ΔE2000 4.5). It sits at 262° on the hue wheel with 99% saturation and 41% lightness, which reads as cool.

What is the RGB value of #4c01cf?

rgb(76, 1, 207) — 76 red, 1 green and 207 blue out of 255, or 29.8% / 0.4% / 81.2% by channel.

Is #4c01cf a light or a dark color?

It is a dark color. Relative luminance is 0.0606 and perceived brightness is 32%, so white text on it reaches 9.49:1.

Should I use black or white text on #4c01cf?

White. It scores 9.49:1 against #4c01cf, versus 2.21:1 for black — AAA at any size.

What is the complementary color of #4c01cf?

#84CF01 sits directly opposite on the wheel. Softer options are the split-complements #CFB301 and #1DCF01, which give the same contrast with far less vibration.

What colors go well with #4c01cf?

For interface work: #F7F4FA as the surface, #D0C0ED for borders, #684B9B for secondary text, #B5CC00 as an accent and #2E017F for hover and pressed states. For a palette, the analogous pair #011DCF and #B301CF stays calm, while #84CF01 is the loudest partner.

What is #4c01cf in CMYK for printing?

cmyk(63%, 100%, 0%, 19%). 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 #4c01cf warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9701CF; nudged cooler, #0001D0.

Work with #4c01cf in the Color Lab