Skip to content

#4f5dfd

a light, electric blue · cool · closest name: Royal Blue

RGB
79, 93, 253
HSL
235°, 98%, 65%
CMYK
69, 63, 0, 1
Luminance
0.1658

At a glance

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

Hex
#4f5dfd
Hue
235°
blue
Saturation
98%
electric
Lightness
65%
light
Brightness
99%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1658
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Electric
Best ink
White
4.86:1
Closest name
Royal Blue
ΔE2000 6
Where it sits
Hue235° of 360°
Saturation98%
Lightness65%
Temperature
Warm ← → Cool86% 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#4f5dfd
RGBrgb(79, 93, 253)
HSLhsl(235, 98%, 65%)
CMYKcmyk(69%, 63%, 0%, 1%)
LABlab(47.7 45.1 -81.1)
LCHlch(47.7 92.8 299.1)
OKLCHoklch(0.568 0.234 272.5)
Decimal5201405
Display P3color(display-p3 0.310 0.365 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f5dfd on white: 4.86:1
AA ✓ pass · AA-large · AAA
Aa
#4f5dfd on black: 4.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0079FF
deuteranopia · #0069FA
tritanopia · #0087A5

Color scale — 50 to 950

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

#F1F2FD
#E3E5FC
#C1C5FB
#9099FE
#4f5dfd
#2133FD
#0316F2
#0212CA
#020FA1
#060F74
#040949
Base = 400Lightest = 50 · #F1F2FDDarkest = 950 · #040949
:root {
  --brand-50: #F1F2FD;
  --brand-100: #E3E5FC;
  --brand-200: #C1C5FB;
  --brand-300: #9099FE;
  --brand-400: #4f5dfd;
  --brand-500: #2133FD;
  --brand-600: #0316F2;
  --brand-700: #0212CA;
  --brand-800: #020FA1;
  --brand-900: #060F74;
  --brand-950: #040949;
  --brand: #4f5dfd;
  --brand-ink: #ffffff;
}

Colors that work with #4f5dfd

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#F4F5FA
Tinted page background
Border#C0C3ED
Hairlines and dividers
Muted text#4B519B
Captions on the surface
Accent#CC8800
Second voice, not a rival
Dark variant#010B7E
Hover, pressed, headers
Light variant#E6E8FF
Selected rows, tints
Dark surface#141524
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 #4f5dfd

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • White 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#FDEF4F
Analogous left#4FB4FD
Analogous right#984FFD
Split-complement 1#FD984F
Split-complement 2#B4FD4F
Triadic 1#FD4F5D
Triadic 2#5DFD4F
Tetradic#FD4FB4

RGB percentages

Red31.0%
Green36.5%
Blue99.2%

CMYK percentages

Cyan68.8%
Magenta63.2%
Yellow0.0%
Key (black)0.8%

Color previews

#4f5dfd text on a black background

contrast 4.32:1

Card sample

#4f5dfd text on a white background

contrast 4.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f5dfd

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.

#4f5dfd 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#4f5dfd, answered

What color is #4f5dfd?

#4f5dfd is a light electric blue, closest to Royal Blue (ΔE2000 6). It sits at 235° on the hue wheel with 98% saturation and 65% lightness, which reads as cool.

What is the RGB value of #4f5dfd?

rgb(79, 93, 253) — 79 red, 93 green and 253 blue out of 255, or 31% / 36.5% / 99.2% by channel.

Is #4f5dfd a light or a dark color?

It is a dark color. Relative luminance is 0.1658 and perceived brightness is 47%, so white text on it reaches 4.86:1.

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

White. It scores 4.86:1 against #4f5dfd, versus 4.32:1 for black — AA at any size.

What is the complementary color of #4f5dfd?

#FDEF4F sits directly opposite on the wheel. Softer options are the split-complements #FD984F and #B4FD4F, which give the same contrast with far less vibration.

What colors go well with #4f5dfd?

For interface work: #F4F5FA as the surface, #C0C3ED for borders, #4B519B for secondary text, #CC8800 as an accent and #010B7E for hover and pressed states. For a palette, the analogous pair #4FB4FD and #984FFD stays calm, while #FDEF4F is the loudest partner.

What is #4f5dfd in CMYK for printing?

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

Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #814FFD; nudged cooler, #4D80FF.

Work with #4f5dfd in the Color Lab