Skip to content

#4f1dec

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

RGB
79, 29, 236
HSL
255°, 85%, 52%
CMYK
67, 88, 0, 8
Luminance
0.0860

At a glance

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

Hex
#4f1dec
Hue
255°
blue
Saturation
85%
electric
Lightness
52%
balanced
Brightness
93%
HSV value
Perceived
37%
weighted brightness
Luminance
0.0860
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.72:1
Closest name
Blue
ΔE2000 3.9
Where it sits
Hue255° of 360°
Saturation85%
Lightness52%
Temperature
Warm ← → Cool75% 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#4f1dec
RGBrgb(79, 29, 236)
HSLhsl(255, 85%, 52%)
CMYKcmyk(67%, 88%, 0%, 8%)
LABlab(35.2 70.7 -92.2)
LCHlch(35.2 116.2 307.5)
OKLCHoklch(0.474 0.270 279.6)
Decimal5185004
Display P3color(display-p3 0.310 0.114 0.925)

Copy-ready code

/* CSS */
color: #4f1dec;
background-color: #4f1dec;
/* Tailwind (arbitrary) */
class="text-[#4f1dec] bg-[#4f1dec]"
/* SCSS */
$brand: #4f1dec;
/* SwiftUI */
Color(red: 0.310, green: 0.114, blue: 0.925)
/* Android */
Color.parseColor("#4f1dec")
/* Flutter */
Color(0xFF4F1DEC)
/* Python / OpenCV (BGR) */
(236, 29, 79)

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

Accessibility — WCAG contrast

Aa
#4f1dec on white: 7.72:1
AA ✓ pass · AA-large · AAA
Aa
#4f1dec on black: 2.72:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005AF1
deuteranopia · #004BE9
tritanopia · #00658C

Color scale — 50 to 950

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

#F5F2FC
#EAE6FA
#D1C5F7
#AE97F6
#8664F2
#4f1dec
#4513E2
#3910BC
#2E0D97
#250E6D
#170944
Base = 500Lightest = 50 · #F5F2FCDarkest = 950 · #170944
:root {
  --brand-50: #F5F2FC;
  --brand-100: #EAE6FA;
  --brand-200: #D1C5F7;
  --brand-300: #AE97F6;
  --brand-400: #8664F2;
  --brand-500: #4f1dec;
  --brand-600: #4513E2;
  --brand-700: #3910BC;
  --brand-800: #2E0D97;
  --brand-900: #250E6D;
  --brand-950: #170944;
  --brand: #4f1dec;
  --brand-ink: #ffffff;
}

Colors that work with #4f1dec

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#CBC0ED
Hairlines and dividers
Muted text#5E4B9B
Captions on the surface
Accent#C0BF0C
Second voice, not a rival
Dark variant#240A76
Hover, pressed, headers
Light variant#EDE7FD
Selected rows, tints
Dark surface#181424
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 #4f1dec

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#BAEC1D
Analogous left#1D53EC
Analogous right#B71DEC
Split-complement 1#ECB71D
Split-complement 2#53EC1D
Triadic 1#EC4F1D
Triadic 2#1DEC4F
Tetradic#EC1D53

RGB percentages

Red31.0%
Green11.4%
Blue92.5%

CMYK percentages

Cyan66.5%
Magenta87.7%
Yellow0.0%
Key (black)7.5%

Color previews

#4f1dec text on a black background

contrast 2.72:1

Card sample

#4f1dec text on a white background

contrast 7.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 29, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 29, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f1dec;
background: linear-gradient(135deg, #4f1dec, #D91DEC);

Monochromatic scale

Palettes built from #4f1dec

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.

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

#4f1dec, answered

What color is #4f1dec?

#4f1dec is a balanced electric blue, closest to Blue (ΔE2000 3.9). It sits at 255° on the hue wheel with 85% saturation and 52% lightness, which reads as cool.

What is the RGB value of #4f1dec?

rgb(79, 29, 236) — 79 red, 29 green and 236 blue out of 255, or 31% / 11.4% / 92.5% by channel.

Is #4f1dec a light or a dark color?

It is a dark color. Relative luminance is 0.0860 and perceived brightness is 37%, so white text on it reaches 7.72:1.

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

White. It scores 7.72:1 against #4f1dec, versus 2.72:1 for black — AAA at any size.

What is the complementary color of #4f1dec?

#BAEC1D sits directly opposite on the wheel. Softer options are the split-complements #ECB71D and #53EC1D, which give the same contrast with far less vibration.

What colors go well with #4f1dec?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5E4B9B for secondary text, #C0BF0C as an accent and #240A76 for hover and pressed states. For a palette, the analogous pair #1D53EC and #B71DEC stays calm, while #BAEC1D is the loudest partner.

What is #4f1dec in CMYK for printing?

cmyk(67%, 88%, 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 #4f1dec warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9B1DEC; nudged cooler, #1B33EE.

Work with #4f1dec in the Color Lab