Skip to content

#4f79df

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

RGB
79, 121, 223
HSL
223°, 69%, 59%
CMYK
65, 46, 0, 13
Luminance
0.2066

At a glance

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

Hex
#4f79df
Hue
223°
blue
Saturation
69%
vivid
Lightness
59%
balanced
Brightness
87%
HSV value
Perceived
50%
weighted brightness
Luminance
0.2066
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.13:1
Closest name
Royal Blue
ΔE2000 5.5
Where it sits
Hue223° of 360°
Saturation69%
Lightness59%
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#4f79df
RGBrgb(79, 121, 223)
HSLhsl(223, 69%, 59%)
CMYKcmyk(65%, 46%, 0%, 13%)
LABlab(52.6 17.7 -56.5)
LCHlch(52.6 59.1 287.4)
OKLCHoklch(0.597 0.162 265.0)
Decimal5208543
Display P3color(display-p3 0.310 0.475 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f79df on white: 4.09:1
AA ✗ fail · AA-large · AAA
Aa
#4f79df on black: 5.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4684E3
deuteranopia · #2C77DD
tritanopia · #0090A1

Color scale — 50 to 950

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

#F3F6FB
#E7ECF8
#CAD5F2
#A0B7EE
#7193E5
#4f79df
#2657CF
#1F49AD
#193A8A
#162D64
#0E1C3F
Base = 500Lightest = 50 · #F3F6FBDarkest = 950 · #0E1C3F
:root {
  --brand-50: #F3F6FB;
  --brand-100: #E7ECF8;
  --brand-200: #CAD5F2;
  --brand-300: #A0B7EE;
  --brand-400: #7193E5;
  --brand-500: #4f79df;
  --brand-600: #2657CF;
  --brand-700: #1F49AD;
  --brand-800: #193A8A;
  --brand-900: #162D64;
  --brand-950: #0E1C3F;
  --brand: #4f79df;
  --brand-ink: #000000;
}

Colors that work with #4f79df

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#B1601B
Second voice, not a rival
Dark variant#142D6C
Hover, pressed, headers
Light variant#E9EFFB
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 #4f79df

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#DFB54F
Analogous left#4FC1DF
Analogous right#6D4FDF
Split-complement 1#DF6D4F
Split-complement 2#C1DF4F
Triadic 1#DF4F79
Triadic 2#79DF4F
Tetradic#DF4FC1

RGB percentages

Red31.0%
Green47.5%
Blue87.5%

CMYK percentages

Cyan64.6%
Magenta45.7%
Yellow0.0%
Key (black)12.5%

Color previews

#4f79df text on a black background

contrast 5.13:1

Card sample

#4f79df text on a white background

contrast 4.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 121, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 121, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f79df;
background: linear-gradient(135deg, #4f79df, #854FDF);

Monochromatic scale

Palettes built from #4f79df

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.

#4f79df 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

Converts to four-color process without much drama. Proof it anyway.

#4f79df, answered

What color is #4f79df?

#4f79df is a balanced vivid blue, closest to Royal Blue (ΔE2000 5.5). It sits at 223° on the hue wheel with 69% saturation and 59% lightness, which reads as cool.

What is the RGB value of #4f79df?

rgb(79, 121, 223) — 79 red, 121 green and 223 blue out of 255, or 31% / 47.5% / 87.5% by channel.

Is #4f79df a light or a dark color?

It is a mid-tone. Relative luminance is 0.2066 and perceived brightness is 50%, so black text on it reaches 5.13:1.

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

Black. It scores 5.13:1 against #4f79df, versus 4.09:1 for white — AA at any size.

What is the complementary color of #4f79df?

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

What colors go well with #4f79df?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B629B for secondary text, #B1601B as an accent and #142D6C for hover and pressed states. For a palette, the analogous pair #4FC1DF and #6D4FDF stays calm, while #DFB54F is the loudest partner.

What is #4f79df in CMYK for printing?

cmyk(65%, 46%, 0%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #4f79df 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 #5A4FDF; nudged cooler, #4D87E1.

Work with #4f79df in the Color Lab