Skip to content

#4e2cf8

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

RGB
78, 44, 248
HSL
250°, 94%, 57%
CMYK
69, 82, 0, 3
Luminance
0.1020

At a glance

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

Hex
#4e2cf8
Hue
250°
blue
Saturation
94%
electric
Lightness
57%
balanced
Brightness
97%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1020
WCAG relative
Temperature
Cool
78/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.91:1
Closest name
Blue
ΔE2000 5.5
Where it sits
Hue250° of 360°
Saturation94%
Lightness57%
Temperature
Warm ← → Cool78% 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#4e2cf8
RGBrgb(78, 44, 248)
HSLhsl(250, 94%, 57%)
CMYKcmyk(69%, 82%, 0%, 3%)
LABlab(38.2 68.6 -94.0)
LCHlch(38.2 116.4 306.1)
OKLCHoklch(0.498 0.274 277.3)
Decimal5123320
Display P3color(display-p3 0.306 0.173 0.973)

Copy-ready code

/* CSS */
color: #4e2cf8;
background-color: #4e2cf8;
/* Tailwind (arbitrary) */
class="text-[#4e2cf8] bg-[#4e2cf8]"
/* SCSS */
$brand: #4e2cf8;
/* SwiftUI */
Color(red: 0.306, green: 0.173, blue: 0.973)
/* Android */
Color.parseColor("#4e2cf8")
/* Flutter */
Color(0xFF4E2CF8)
/* Python / OpenCV (BGR) */
(248, 44, 78)

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 #4e2cf8 · 6.91:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.91:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.04:1
AA fail · AA large pass · AAA fail
Reading the other direction: #4e2cf8 as text scores 6.91:1 on white and 3.04:1 on black.

Accessibility — WCAG contrast

Aa
#4e2cf8 on white: 6.91:1
AA ✓ pass · AA-large · AAA
Aa
#4e2cf8 on black: 3.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062FD
deuteranopia · #0051F5
tritanopia · #006E96

Color scale — 50 to 950

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

#F3F2FD
#E8E4FB
#CBC2FA
#A492FB
#765CFA
#4e2cf8
#2E08ED
#2607C5
#1F059E
#1A0872
#100547
Base = 500Lightest = 50 · #F3F2FDDarkest = 950 · #100547
:root {
  --brand-50: #F3F2FD;
  --brand-100: #E8E4FB;
  --brand-200: #CBC2FA;
  --brand-300: #A492FB;
  --brand-400: #765CFA;
  --brand-500: #4e2cf8;
  --brand-600: #2E08ED;
  --brand-700: #2607C5;
  --brand-800: #1F059E;
  --brand-900: #1A0872;
  --brand-950: #100547;
  --brand: #4e2cf8;
  --brand-ink: #ffffff;
}

Colors that work with #4e2cf8

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#F5F4FA
Tinted page background
Border#C7C0ED
Hairlines and dividers
Muted text#584B9B
Captions on the surface
Accent#C9B903
Second voice, not a rival
Dark variant#18047B
Hover, pressed, headers
Light variant#EAE6FE
Selected rows, tints
Dark surface#161424
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 #4e2cf8

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
  • 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#D6F82C
Analogous left#2C70F8
Analogous right#B42CF8
Split-complement 1#F8B42C
Split-complement 2#70F82C
Triadic 1#F84E2C
Triadic 2#2CF84E
Tetradic#F82C70

RGB percentages

Red30.6%
Green17.3%
Blue97.3%

CMYK percentages

Cyan68.5%
Magenta82.3%
Yellow0.0%
Key (black)2.7%

Color previews

#4e2cf8 text on a black background

contrast 3.04:1

Card sample

#4e2cf8 text on a white background

contrast 6.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(78, 44, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(78, 44, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4e2cf8;
background: linear-gradient(135deg, #4e2cf8, #D62CF8);

Monochromatic scale

Palettes built from #4e2cf8

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.

#4e2cf8 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#4e2cf8, answered

What color is #4e2cf8?

#4e2cf8 is a balanced electric blue, closest to Blue (ΔE2000 5.5). It sits at 250° on the hue wheel with 94% saturation and 57% lightness, which reads as cool.

What is the RGB value of #4e2cf8?

rgb(78, 44, 248) — 78 red, 44 green and 248 blue out of 255, or 30.6% / 17.3% / 97.3% by channel.

Is #4e2cf8 a light or a dark color?

It is a dark color. Relative luminance is 0.1020 and perceived brightness is 39%, so white text on it reaches 6.91:1.

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

White. It scores 6.91:1 against #4e2cf8, versus 3.04:1 for black — AA at any size.

What is the complementary color of #4e2cf8?

#D6F82C sits directly opposite on the wheel. Softer options are the split-complements #F8B42C and #70F82C, which give the same contrast with far less vibration.

What colors go well with #4e2cf8?

For interface work: #F5F4FA as the surface, #C7C0ED for borders, #584B9B for secondary text, #C9B903 as an accent and #18047B for hover and pressed states. For a palette, the analogous pair #2C70F8 and #B42CF8 stays calm, while #D6F82C is the loudest partner.

What is #4e2cf8 in CMYK for printing?

cmyk(69%, 82%, 0%, 3%). 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 #4e2cf8 warm or cool?

Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #992CF8; nudged cooler, #2A4BFA.

Work with #4e2cf8 in the Color Lab