Skip to content

#4e7df4

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

RGB
78, 125, 244
HSL
223°, 88%, 63%
CMYK
68, 49, 0, 4
Luminance
0.2282

At a glance

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

Hex
#4e7df4
Hue
223°
blue
Saturation
88%
electric
Lightness
63%
balanced
Brightness
96%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2282
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.56:1
Closest name
Royal Blue
ΔE2000 7.3
Where it sits
Hue223° of 360°
Saturation88%
Lightness63%
Temperature
Warm ← → Cool93% 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#4e7df4
RGBrgb(78, 125, 244)
HSLhsl(223, 88%, 63%)
CMYKcmyk(68%, 49%, 0%, 4%)
LABlab(54.9 22.3 -64.5)
LCHlch(54.9 68.2 289.1)
OKLCHoklch(0.619 0.186 265.2)
Decimal5144052
Display P3color(display-p3 0.306 0.490 0.957)

Copy-ready code

/* CSS */
color: #4e7df4;
background-color: #4e7df4;
/* Tailwind (arbitrary) */
class="text-[#4e7df4] bg-[#4e7df4]"
/* SCSS */
$brand: #4e7df4;
/* SwiftUI */
Color(red: 0.306, green: 0.490, blue: 0.957)
/* Android */
Color.parseColor("#4e7df4")
/* Flutter */
Color(0xFF4E7DF4)
/* Python / OpenCV (BGR) */
(244, 125, 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#000000 on #4e7df4 · 5.56:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.77:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.56:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #4e7df4 as text scores 3.77:1 on white and 5.56:1 on black.

Accessibility — WCAG contrast

Aa
#4e7df4 on white: 3.77:1
AA ✗ fail · AA-large · AAA
Aa
#4e7df4 on black: 5.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3A8BF8
deuteranopia · #007CF2
tritanopia · #0099AD

Color scale — 50 to 950

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

#F2F5FD
#E5EBFA
#C4D3F8
#95B1F8
#4e7df4
#2C64F2
#0E4CE6
#0C3FC0
#0A329A
#0B286F
#071945
Base = 400Lightest = 50 · #F2F5FDDarkest = 950 · #071945
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5EBFA;
  --brand-200: #C4D3F8;
  --brand-300: #95B1F8;
  --brand-400: #4e7df4;
  --brand-500: #2C64F2;
  --brand-600: #0E4CE6;
  --brand-700: #0C3FC0;
  --brand-800: #0A329A;
  --brand-900: #0B286F;
  --brand-950: #071945;
  --brand: #4e7df4;
  --brand-ink: #000000;
}

Colors that work with #4e7df4

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4F6FA
Tinted page background
Border#C0CCED
Hairlines and dividers
Muted text#4B619B
Captions on the surface
Accent#C45F08
Second voice, not a rival
Dark variant#072778
Hover, pressed, headers
Light variant#E7EDFE
Selected rows, tints
Dark surface#141824
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 #4e7df4

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#F4C54E
Analogous left#4ED0F4
Analogous right#724EF4
Split-complement 1#F4724E
Split-complement 2#D0F44E
Triadic 1#F44E7D
Triadic 2#7DF44E
Tetradic#F44ED0

RGB percentages

Red30.6%
Green49.0%
Blue95.7%

CMYK percentages

Cyan68.0%
Magenta48.8%
Yellow0.0%
Key (black)4.3%

Color previews

#4e7df4 text on a black background

contrast 5.56:1

Card sample

#4e7df4 text on a white background

contrast 3.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4e7df4

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.

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

#4e7df4, answered

What color is #4e7df4?

#4e7df4 is a balanced electric blue, closest to Royal Blue (ΔE2000 7.3). It sits at 223° on the hue wheel with 88% saturation and 63% lightness, which reads as cool.

What is the RGB value of #4e7df4?

rgb(78, 125, 244) — 78 red, 125 green and 244 blue out of 255, or 30.6% / 49% / 95.7% by channel.

Is #4e7df4 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2282 and perceived brightness is 52%, so black text on it reaches 5.56:1.

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

Black. It scores 5.56:1 against #4e7df4, versus 3.77:1 for white — AA at any size.

What is the complementary color of #4e7df4?

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

What colors go well with #4e7df4?

For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B619B for secondary text, #C45F08 as an accent and #072778 for hover and pressed states. For a palette, the analogous pair #4ED0F4 and #724EF4 stays calm, while #F4C54E is the loudest partner.

What is #4e7df4 in CMYK for printing?

cmyk(68%, 49%, 0%, 4%). 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 #4e7df4 warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5C4EF4; nudged cooler, #4C8DF6.

Work with #4e7df4 in the Color Lab