Skip to content

#4b04eb

a balanced, electric violet · cool · closest name: Blue

RGB
75, 4, 235
HSL
258°, 97%, 47%
CMYK
68, 98, 0, 8
Luminance
0.0758

At a glance

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

Hex
#4b04eb
Hue
258°
violet
Saturation
97%
electric
Lightness
47%
balanced
Brightness
92%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0758
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.35:1
Closest name
Blue
ΔE2000 3.1
Where it sits
Hue258° of 360°
Saturation97%
Lightness47%
Temperature
Warm ← → Cool73% 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#4b04eb
RGBrgb(75, 4, 235)
HSLhsl(258, 97%, 47%)
CMYKcmyk(68%, 98%, 0%, 8%)
LABlab(33.1 75.2 -95.2)
LCHlch(33.1 121.3 308.3)
OKLCHoklch(0.459 0.278 279.0)
Decimal4916459
Display P3color(display-p3 0.294 0.016 0.922)

Copy-ready code

/* CSS */
color: #4b04eb;
background-color: #4b04eb;
/* Tailwind (arbitrary) */
class="text-[#4b04eb] bg-[#4b04eb]"
/* SCSS */
$brand: #4b04eb;
/* SwiftUI */
Color(red: 0.294, green: 0.016, blue: 0.922)
/* Android */
Color.parseColor("#4b04eb")
/* Flutter */
Color(0xFF4B04EB)
/* Python / OpenCV (BGR) */
(235, 4, 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 #4b04eb · 8.35:1
Use #ffffffAAA at every size.
Aa
White text · 8.35:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.52:1
AA fail · AA large fail · AAA fail
Reading the other direction: #4b04eb as text scores 8.35:1 on white and 2.52:1 on black.

Accessibility — WCAG contrast

Aa
#4b04eb on white: 8.35:1
AA ✓ pass · AA-large · AAA
Aa
#4b04eb on black: 2.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0055F0
deuteranopia · #0045E8
tritanopia · #00608A

Color scale — 50 to 950

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

#F5F1FD
#EBE4FC
#D3C1FB
#B291FD
#8B59FC
#6522FB
#4b04eb
#4003C9
#3303A1
#280774
#190448
Base = 600Lightest = 50 · #F5F1FDDarkest = 950 · #190448
:root {
  --brand-50: #F5F1FD;
  --brand-100: #EBE4FC;
  --brand-200: #D3C1FB;
  --brand-300: #B291FD;
  --brand-400: #8B59FC;
  --brand-500: #6522FB;
  --brand-600: #4b04eb;
  --brand-700: #4003C9;
  --brand-800: #3303A1;
  --brand-900: #280774;
  --brand-950: #190448;
  --brand: #4b04eb;
  --brand-ink: #ffffff;
}

Colors that work with #4b04eb

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#CEC0ED
Hairlines and dividers
Muted text#634B9B
Captions on the surface
Accent#C1CC00
Second voice, not a rival
Dark variant#28027D
Hover, pressed, headers
Light variant#EDE6FF
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 #4b04eb

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
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#A4EB04
Analogous left#0431EB
Analogous right#BF04EB
Split-complement 1#EBBF04
Split-complement 2#31EB04
Triadic 1#EB4B04
Triadic 2#04EB4B
Tetradic#EB0431

RGB percentages

Red29.4%
Green1.6%
Blue92.2%

CMYK percentages

Cyan68.1%
Magenta98.3%
Yellow0.0%
Key (black)7.8%

Color previews

#4b04eb text on a black background

contrast 2.52:1

Card sample

#4b04eb text on a white background

contrast 8.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4b04eb

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.

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

#4b04eb, answered

What color is #4b04eb?

#4b04eb is a balanced electric violet, closest to Blue (ΔE2000 3.1). It sits at 258° on the hue wheel with 97% saturation and 47% lightness, which reads as cool.

What is the RGB value of #4b04eb?

rgb(75, 4, 235) — 75 red, 4 green and 235 blue out of 255, or 29.4% / 1.6% / 92.2% by channel.

Is #4b04eb a light or a dark color?

It is a dark color. Relative luminance is 0.0758 and perceived brightness is 35%, so white text on it reaches 8.35:1.

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

White. It scores 8.35:1 against #4b04eb, versus 2.52:1 for black — AAA at any size.

What is the complementary color of #4b04eb?

#A4EB04 sits directly opposite on the wheel. Softer options are the split-complements #EBBF04 and #31EB04, which give the same contrast with far less vibration.

What colors go well with #4b04eb?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #634B9B for secondary text, #C1CC00 as an accent and #28027D for hover and pressed states. For a palette, the analogous pair #0431EB and #BF04EB stays calm, while #A4EB04 is the loudest partner.

What is #4b04eb in CMYK for printing?

cmyk(68%, 98%, 0%, 8%). 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 #4b04eb warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A004EB; nudged cooler, #020FEE.

Work with #4b04eb in the Color Lab