Skip to content

#4f7dec

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

RGB
79, 125, 236
HSL
222°, 81%, 62%
CMYK
67, 47, 0, 8
Luminance
0.2239

At a glance

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

Hex
#4f7dec
Hue
222°
blue
Saturation
81%
electric
Lightness
62%
balanced
Brightness
93%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2239
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.48:1
Closest name
Royal Blue
ΔE2000 7.1
Where it sits
Hue222° of 360°
Saturation81%
Lightness62%
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#4f7dec
RGBrgb(79, 125, 236)
HSLhsl(222, 81%, 62%)
CMYKcmyk(67%, 47%, 0%, 8%)
LABlab(54.4 19.7 -60.8)
LCHlch(54.4 63.9 288.0)
OKLCHoklch(0.614 0.175 264.8)
Decimal5209580
Display P3color(display-p3 0.310 0.490 0.925)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f7dec on white: 3.83:1
AA ✗ fail · AA-large · AAA
Aa
#4f7dec on black: 5.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #438AF0
deuteranopia · #1F7BEA
tritanopia · #0097A9

Color scale — 50 to 950

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

#F3F5FC
#E6ECF9
#C6D4F5
#9AB4F4
#4f7dec
#3469E9
#1852DD
#1444B8
#103693
#102A6B
#0A1B43
Base = 400Lightest = 50 · #F3F5FCDarkest = 950 · #0A1B43
:root {
  --brand-50: #F3F5FC;
  --brand-100: #E6ECF9;
  --brand-200: #C6D4F5;
  --brand-300: #9AB4F4;
  --brand-400: #4f7dec;
  --brand-500: #3469E9;
  --brand-600: #1852DD;
  --brand-700: #1444B8;
  --brand-800: #103693;
  --brand-900: #102A6B;
  --brand-950: #0A1B43;
  --brand: #4f7dec;
  --brand-ink: #000000;
}

Colors that work with #4f7dec

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#C0CDED
Hairlines and dividers
Muted text#4B629B
Captions on the surface
Accent#BC5E10
Second voice, not a rival
Dark variant#0C2B73
Hover, pressed, headers
Light variant#E8EEFD
Selected rows, tints
Dark surface#141924
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 #4f7dec

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#ECBE4F
Analogous left#4FCCEC
Analogous right#704FEC
Split-complement 1#EC704F
Split-complement 2#CCEC4F
Triadic 1#EC4F7D
Triadic 2#7DEC4F
Tetradic#EC4FCC

RGB percentages

Red31.0%
Green49.0%
Blue92.5%

CMYK percentages

Cyan66.5%
Magenta47.0%
Yellow0.0%
Key (black)7.5%

Color previews

#4f7dec text on a black background

contrast 5.48:1

Card sample

#4f7dec text on a white background

contrast 3.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f7dec

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.

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

#4f7dec, answered

What color is #4f7dec?

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

What is the RGB value of #4f7dec?

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

Is #4f7dec a light or a dark color?

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

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

Black. It scores 5.48:1 against #4f7dec, versus 3.83:1 for white — AA at any size.

What is the complementary color of #4f7dec?

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

What colors go well with #4f7dec?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B629B for secondary text, #BC5E10 as an accent and #0C2B73 for hover and pressed states. For a palette, the analogous pair #4FCCEC and #704FEC stays calm, while #ECBE4F is the loudest partner.

What is #4f7dec in CMYK for printing?

cmyk(67%, 47%, 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 #4f7dec 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 #5B4FEC; nudged cooler, #367DEC.

Work with #4f7dec in the Color Lab