Skip to content

#4b02cd

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

RGB
75, 2, 205
HSL
262°, 98%, 41%
CMYK
63, 99, 0, 20
Luminance
0.0595

At a glance

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

Hex
#4b02cd
Hue
262°
violet
Saturation
98%
electric
Lightness
41%
dark
Brightness
80%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0595
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
9.59:1
Closest name
Medium Blue
ΔE2000 4.4
Where it sits
Hue262° of 360°
Saturation98%
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#4b02cd
RGBrgb(75, 2, 205)
HSLhsl(262, 98%, 41%)
CMYKcmyk(63%, 99%, 0%, 20%)
LABlab(29.3 68.5 -84.2)
LCHlch(29.3 108.6 309.1)
OKLCHoklch(0.423 0.249 283.2)
Decimal4915917
Display P3color(display-p3 0.294 0.008 0.804)

Copy-ready code

/* CSS */
color: #4b02cd;
background-color: #4b02cd;
/* Tailwind (arbitrary) */
class="text-[#4b02cd] bg-[#4b02cd]"
/* SCSS */
$brand: #4b02cd;
/* SwiftUI */
Color(red: 0.294, green: 0.008, blue: 0.804)
/* Android */
Color.parseColor("#4b02cd")
/* Flutter */
Color(0xFF4B02CD)
/* Python / OpenCV (BGR) */
(205, 2, 75)

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

Accessibility — WCAG contrast

Aa
#4b02cd on white: 9.59:1
AA ✓ pass · AA-large · AAA
Aa
#4b02cd on black: 2.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004AD2
deuteranopia · #003FCA
tritanopia · #005278

Color scale — 50 to 950

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

#F6F1FD
#ECE3FC
#D6C1FB
#B790FE
#9458FD
#7021FD
#5902F2
#4b02cd
#3B02A2
#2E0674
#1D0449
Base = 700Lightest = 50 · #F6F1FDDarkest = 950 · #1D0449
:root {
  --brand-50: #F6F1FD;
  --brand-100: #ECE3FC;
  --brand-200: #D6C1FB;
  --brand-300: #B790FE;
  --brand-400: #9458FD;
  --brand-500: #7021FD;
  --brand-600: #5902F2;
  --brand-700: #4b02cd;
  --brand-800: #3B02A2;
  --brand-900: #2E0674;
  --brand-950: #1D0449;
  --brand: #4b02cd;
  --brand-ink: #ffffff;
}

Colors that work with #4b02cd

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#D0C0ED
Hairlines and dividers
Muted text#684B9B
Captions on the surface
Accent#B5CC00
Second voice, not a rival
Dark variant#2E017E
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 #4b02cd

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#84CD02
Analogous left#021ECD
Analogous right#B102CD
Split-complement 1#CDB102
Split-complement 2#1ECD02
Triadic 1#CD4B02
Triadic 2#02CD4B
Tetradic#CD021E

RGB percentages

Red29.4%
Green0.8%
Blue80.4%

CMYK percentages

Cyan63.4%
Magenta99.0%
Yellow0.0%
Key (black)19.6%

Color previews

#4b02cd text on a black background

contrast 2.19:1

Card sample

#4b02cd text on a white background

contrast 9.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4b02cd

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.

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

#4b02cd, answered

What color is #4b02cd?

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

What is the RGB value of #4b02cd?

rgb(75, 2, 205) — 75 red, 2 green and 205 blue out of 255, or 29.4% / 0.8% / 80.4% by channel.

Is #4b02cd a light or a dark color?

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

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

White. It scores 9.59:1 against #4b02cd, versus 2.19:1 for black — AAA at any size.

What is the complementary color of #4b02cd?

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

What colors go well with #4b02cd?

For interface work: #F6F4FA as the surface, #D0C0ED for borders, #684B9B for secondary text, #B5CC00 as an accent and #2E017E for hover and pressed states. For a palette, the analogous pair #021ECD and #B102CD stays calm, while #84CD02 is the loudest partner.

What is #4b02cd in CMYK for printing?

cmyk(63%, 99%, 0%, 20%). 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 #4b02cd 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 #9602CD; nudged cooler, #0001CF.

Work with #4b02cd in the Color Lab