Skip to content

#4f6af5

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

RGB
79, 106, 245
HSL
230°, 89%, 64%
CMYK
68, 57, 0, 4
Luminance
0.1856

At a glance

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

Hex
#4f6af5
Hue
230°
blue
Saturation
89%
electric
Lightness
64%
balanced
Brightness
96%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1856
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
4.71:1
Closest name
Royal Blue
ΔE2000 3.6
Where it sits
Hue230° of 360°
Saturation89%
Lightness64%
Temperature
Warm ← → Cool89% 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#4f6af5
RGBrgb(79, 106, 245)
HSLhsl(230, 89%, 64%)
CMYKcmyk(68%, 57%, 0%, 4%)
LABlab(50.2 34.5 -72.7)
LCHlch(50.2 80.4 295.4)
OKLCHoklch(0.584 0.209 270.3)
Decimal5204725
Display P3color(display-p3 0.310 0.416 0.961)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f6af5 on white: 4.46:1
AA ✗ fail · AA-large · AAA
Aa
#4f6af5 on black: 4.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007FFA
deuteranopia · #0070F2
tritanopia · #008CA5

Color scale — 50 to 950

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

#F2F4FD
#E5E8FB
#C4CCF8
#95A5F9
#4f6af5
#2B4BF3
#0D31E8
#0B29C1
#09219A
#0B1B6F
#071146
Base = 400Lightest = 50 · #F2F4FDDarkest = 950 · #071146
:root {
  --brand-50: #F2F4FD;
  --brand-100: #E5E8FB;
  --brand-200: #C4CCF8;
  --brand-300: #95A5F9;
  --brand-400: #4f6af5;
  --brand-500: #2B4BF3;
  --brand-600: #0D31E8;
  --brand-700: #0B29C1;
  --brand-800: #09219A;
  --brand-900: #0B1B6F;
  --brand-950: #071146;
  --brand: #4f6af5;
  --brand-ink: #000000;
}

Colors that work with #4f6af5

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#F4F5FA
Tinted page background
Border#C0C7ED
Hairlines and dividers
Muted text#4B589B
Captions on the surface
Accent#C57707
Second voice, not a rival
Dark variant#071979
Hover, pressed, headers
Light variant#E7EBFE
Selected rows, tints
Dark surface#141624
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 #4f6af5

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#F5DA4F
Analogous left#4FBDF5
Analogous right#874FF5
Split-complement 1#F5874F
Split-complement 2#BDF54F
Triadic 1#F54F6A
Triadic 2#6AF54F
Tetradic#F54FBD

RGB percentages

Red31.0%
Green41.6%
Blue96.1%

CMYK percentages

Cyan67.8%
Magenta56.7%
Yellow0.0%
Key (black)3.9%

Color previews

#4f6af5 text on a black background

contrast 4.71:1

Card sample

#4f6af5 text on a white background

contrast 4.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f6af5

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.

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

#4f6af5, answered

What color is #4f6af5?

#4f6af5 is a balanced electric blue, closest to Royal Blue (ΔE2000 3.6). It sits at 230° on the hue wheel with 89% saturation and 64% lightness, which reads as cool.

What is the RGB value of #4f6af5?

rgb(79, 106, 245) — 79 red, 106 green and 245 blue out of 255, or 31% / 41.6% / 96.1% by channel.

Is #4f6af5 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1856 and perceived brightness is 49%, so black text on it reaches 4.71:1.

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

Black. It scores 4.71:1 against #4f6af5, versus 4.46:1 for white — AA at any size.

What is the complementary color of #4f6af5?

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

What colors go well with #4f6af5?

For interface work: #F4F5FA as the surface, #C0C7ED for borders, #4B589B for secondary text, #C57707 as an accent and #071979 for hover and pressed states. For a palette, the analogous pair #4FBDF5 and #874FF5 stays calm, while #F5DA4F is the loudest partner.

What is #4f6af5 in CMYK for printing?

cmyk(68%, 57%, 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 #4f6af5 warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #714FF5; nudged cooler, #4D85F7.

Work with #4f6af5 in the Color Lab