Skip to content

#4f5def

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

RGB
79, 93, 239
HSL
235°, 83%, 62%
CMYK
67, 61, 0, 6
Luminance
0.1572

At a glance

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

Hex
#4f5def
Hue
235°
blue
Saturation
83%
electric
Lightness
62%
balanced
Brightness
94%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1572
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Electric
Best ink
White
5.07:1
Closest name
Royal Blue
ΔE2000 5.2
Where it sits
Hue235° of 360°
Saturation83%
Lightness62%
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#4f5def
RGBrgb(79, 93, 239)
HSLhsl(235, 83%, 62%)
CMYKcmyk(67%, 61%, 0%, 6%)
LABlab(46.6 40.4 -75.1)
LCHlch(46.6 85.3 298.3)
OKLCHoklch(0.556 0.217 272.9)
Decimal5201391
Display P3color(display-p3 0.310 0.365 0.937)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f5def on white: 5.07:1
AA ✓ pass · AA-large · AAA
Aa
#4f5def on black: 4.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0076F4
deuteranopia · #0067EC
tritanopia · #00829D

Color scale — 50 to 950

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

#F2F3FC
#E6E7FA
#C6CAF6
#98A0F6
#4f5def
#3142EC
#1426E0
#1120BB
#0E1996
#0E166C
#090E44
Base = 400Lightest = 50 · #F2F3FCDarkest = 950 · #090E44
:root {
  --brand-50: #F2F3FC;
  --brand-100: #E6E7FA;
  --brand-200: #C6CAF6;
  --brand-300: #98A0F6;
  --brand-400: #4f5def;
  --brand-500: #3142EC;
  --brand-600: #1426E0;
  --brand-700: #1120BB;
  --brand-800: #0E1996;
  --brand-900: #0E166C;
  --brand-950: #090E44;
  --brand: #4f5def;
  --brand-ink: #ffffff;
}

Colors that work with #4f5def

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#C0C4ED
Hairlines and dividers
Muted text#4B529B
Captions on the surface
Accent#BF830D
Second voice, not a rival
Dark variant#0B1475
Hover, pressed, headers
Light variant#E8E9FD
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 #4f5def

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#EFE14F
Analogous left#4FADEF
Analogous right#914FEF
Split-complement 1#EF914F
Split-complement 2#ADEF4F
Triadic 1#EF4F5D
Triadic 2#5DEF4F
Tetradic#EF4FAD

RGB percentages

Red31.0%
Green36.5%
Blue93.7%

CMYK percentages

Cyan66.9%
Magenta61.1%
Yellow0.0%
Key (black)6.3%

Color previews

#4f5def text on a black background

contrast 4.14:1

Card sample

#4f5def text on a white background

contrast 5.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f5def

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.

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

#4f5def, answered

What color is #4f5def?

#4f5def is a balanced electric blue, closest to Royal Blue (ΔE2000 5.2). It sits at 235° on the hue wheel with 83% saturation and 62% lightness, which reads as cool.

What is the RGB value of #4f5def?

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

Is #4f5def a light or a dark color?

It is a dark color. Relative luminance is 0.1572 and perceived brightness is 45%, so white text on it reaches 5.07:1.

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

White. It scores 5.07:1 against #4f5def, versus 4.14:1 for black — AA at any size.

What is the complementary color of #4f5def?

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

What colors go well with #4f5def?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B529B for secondary text, #BF830D as an accent and #0B1475 for hover and pressed states. For a palette, the analogous pair #4FADEF and #914FEF stays calm, while #EFE14F is the loudest partner.

What is #4f5def in CMYK for printing?

cmyk(67%, 61%, 0%, 6%). 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 #4f5def 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 #7C4FEF; nudged cooler, #4D7EF1.

Work with #4f5def in the Color Lab