Skip to content

#4f3dfe

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

RGB
79, 61, 254
HSL
246°, 99%, 62%
CMYK
69, 76, 0, 0
Luminance
0.1216

At a glance

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

Hex
#4f3dfe
Hue
246°
blue
Saturation
99%
electric
Lightness
62%
balanced
Brightness
100%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1216
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.12:1
Closest name
Blue Violet
ΔE2000 8.3
Where it sits
Hue246° of 360°
Saturation99%
Lightness62%
Temperature
Warm ← → Cool80% 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#4f3dfe
RGBrgb(79, 61, 254)
HSLhsl(246, 99%, 62%)
CMYKcmyk(69%, 76%, 0%, 0%)
LABlab(41.5 62.9 -92.0)
LCHlch(41.5 111.4 304.4)
OKLCHoklch(0.523 0.267 276.0)
Decimal5193214
Display P3color(display-p3 0.310 0.239 0.996)

Copy-ready code

/* CSS */
color: #4f3dfe;
background-color: #4f3dfe;
/* Tailwind (arbitrary) */
class="text-[#4f3dfe] bg-[#4f3dfe]"
/* SCSS */
$brand: #4f3dfe;
/* SwiftUI */
Color(red: 0.310, green: 0.239, blue: 0.996)
/* Android */
Color.parseColor("#4f3dfe")
/* Flutter */
Color(0xFF4F3DFE)
/* Python / OpenCV (BGR) */
(254, 61, 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 #4f3dfe · 6.12:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.12:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.43:1
AA fail · AA large pass · AAA fail
Reading the other direction: #4f3dfe as text scores 6.12:1 on white and 3.43:1 on black.

Accessibility — WCAG contrast

Aa
#4f3dfe on white: 6.12:1
AA ✓ pass · AA-large · AAA
Aa
#4f3dfe on black: 3.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006AFF
deuteranopia · #0059FB
tritanopia · #00779C

Color scale — 50 to 950

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

#F2F1FE
#E6E3FC
#C6C0FB
#9A8FFE
#4f3dfe
#3420FE
#1801F4
#1401CB
#1001A2
#100575
#0A0349
Base = 400Lightest = 50 · #F2F1FEDarkest = 950 · #0A0349
:root {
  --brand-50: #F2F1FE;
  --brand-100: #E6E3FC;
  --brand-200: #C6C0FB;
  --brand-300: #9A8FFE;
  --brand-400: #4f3dfe;
  --brand-500: #3420FE;
  --brand-600: #1801F4;
  --brand-700: #1401CB;
  --brand-800: #1001A2;
  --brand-900: #100575;
  --brand-950: #0A0349;
  --brand: #4f3dfe;
  --brand-ink: #ffffff;
}

Colors that work with #4f3dfe

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#C4C0ED
Hairlines and dividers
Muted text#524B9B
Captions on the surface
Accent#CCAC00
Second voice, not a rival
Dark variant#0C017F
Hover, pressed, headers
Light variant#E8E6FF
Selected rows, tints
Dark surface#151424
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 #4f3dfe

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#ECFE3D
Analogous left#3D8CFE
Analogous right#B03DFE
Split-complement 1#FEB03D
Split-complement 2#8CFE3D
Triadic 1#FE4F3D
Triadic 2#3DFE4F
Tetradic#FE3D8C

RGB percentages

Red31.0%
Green23.9%
Blue99.6%

CMYK percentages

Cyan68.9%
Magenta76.0%
Yellow0.0%
Key (black)0.4%

Color previews

#4f3dfe text on a black background

contrast 3.43:1

Card sample

#4f3dfe text on a white background

contrast 6.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f3dfe

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.

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

#4f3dfe, answered

What color is #4f3dfe?

#4f3dfe is a balanced electric blue, closest to Blue Violet (ΔE2000 8.3). It sits at 246° on the hue wheel with 99% saturation and 62% lightness, which reads as cool.

What is the RGB value of #4f3dfe?

rgb(79, 61, 254) — 79 red, 61 green and 254 blue out of 255, or 31% / 23.9% / 99.6% by channel.

Is #4f3dfe a light or a dark color?

It is a dark color. Relative luminance is 0.1216 and perceived brightness is 42%, so white text on it reaches 6.12:1.

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

White. It scores 6.12:1 against #4f3dfe, versus 3.43:1 for black — AA at any size.

What is the complementary color of #4f3dfe?

#ECFE3D sits directly opposite on the wheel. Softer options are the split-complements #FEB03D and #8CFE3D, which give the same contrast with far less vibration.

What colors go well with #4f3dfe?

For interface work: #F5F4FA as the surface, #C4C0ED for borders, #524B9B for secondary text, #CCAC00 as an accent and #0C017F for hover and pressed states. For a palette, the analogous pair #3D8CFE and #B03DFE stays calm, while #ECFE3D is the loudest partner.

What is #4f3dfe in CMYK for printing?

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

Cool — it scores 80 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #963DFE; nudged cooler, #3C63FF.

Work with #4f3dfe in the Color Lab