Skip to content

#4f6fe2

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

RGB
79, 111, 226
HSL
227°, 72%, 60%
CMYK
65, 51, 0, 11
Luminance
0.1852

At a glance

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

Hex
#4f6fe2
Hue
227°
blue
Saturation
72%
vivid
Lightness
60%
balanced
Brightness
89%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1852
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
4.70:1
Closest name
Royal Blue
ΔE2000 2.4
Where it sits
Hue227° of 360°
Saturation72%
Lightness60%
Temperature
Warm ← → Cool91% 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#4f6fe2
RGBrgb(79, 111, 226)
HSLhsl(227, 72%, 60%)
CMYKcmyk(65%, 51%, 0%, 11%)
LABlab(50.1 24.9 -62.1)
LCHlch(50.1 66.9 291.9)
OKLCHoklch(0.579 0.178 268.6)
Decimal5205986
Display P3color(display-p3 0.310 0.435 0.886)

Copy-ready code

/* CSS */
color: #4f6fe2;
background-color: #4f6fe2;
/* Tailwind (arbitrary) */
class="text-[#4f6fe2] bg-[#4f6fe2]"
/* SCSS */
$brand: #4f6fe2;
/* SwiftUI */
Color(red: 0.310, green: 0.435, blue: 0.886)
/* Android */
Color.parseColor("#4f6fe2")
/* Flutter */
Color(0xFF4F6FE2)
/* Python / OpenCV (BGR) */
(226, 111, 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 #4f6fe2 · 4.70: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.70:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #4f6fe2 as text scores 4.46:1 on white and 4.70:1 on black.

Accessibility — WCAG contrast

Aa
#4f6fe2 on white: 4.46:1
AA ✗ fail · AA-large · AAA
Aa
#4f6fe2 on black: 4.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2A7EE6
deuteranopia · #0071E0
tritanopia · #008A9E

Color scale — 50 to 950

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

#F3F5FC
#E7EBF8
#C9D2F3
#9FB0EF
#6F89E7
#4f6fe2
#2349D2
#1D3DAF
#17318C
#152666
#0D183F
Base = 500Lightest = 50 · #F3F5FCDarkest = 950 · #0D183F
:root {
  --brand-50: #F3F5FC;
  --brand-100: #E7EBF8;
  --brand-200: #C9D2F3;
  --brand-300: #9FB0EF;
  --brand-400: #6F89E7;
  --brand-500: #4f6fe2;
  --brand-600: #2349D2;
  --brand-700: #1D3DAF;
  --brand-800: #17318C;
  --brand-900: #152666;
  --brand-950: #0D183F;
  --brand: #4f6fe2;
  --brand-ink: #000000;
}

Colors that work with #4f6fe2

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#C0CAED
Hairlines and dividers
Muted text#4B5C9B
Captions on the surface
Accent#B36A19
Second voice, not a rival
Dark variant#12266D
Hover, pressed, headers
Light variant#E9EDFB
Selected rows, tints
Dark surface#141724
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 #4f6fe2

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#E2C24F
Analogous left#4FB9E2
Analogous right#784FE2
Split-complement 1#E2784F
Split-complement 2#B9E24F
Triadic 1#E24F6F
Triadic 2#6FE24F
Tetradic#E24FB9

RGB percentages

Red31.0%
Green43.5%
Blue88.6%

CMYK percentages

Cyan65.0%
Magenta50.9%
Yellow0.0%
Key (black)11.4%

Color previews

#4f6fe2 text on a black background

contrast 4.70:1

Card sample

#4f6fe2 text on a white background

contrast 4.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 111, 226, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 111, 226, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f6fe2;
background: linear-gradient(135deg, #4f6fe2, #914FE2);

Monochromatic scale

Palettes built from #4f6fe2

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.

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

#4f6fe2, answered

What color is #4f6fe2?

#4f6fe2 is a balanced vivid blue, closest to Royal Blue (ΔE2000 2.4). It sits at 227° on the hue wheel with 72% saturation and 60% lightness, which reads as cool.

What is the RGB value of #4f6fe2?

rgb(79, 111, 226) — 79 red, 111 green and 226 blue out of 255, or 31% / 43.5% / 88.6% by channel.

Is #4f6fe2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1852 and perceived brightness is 48%, so black text on it reaches 4.70:1.

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

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

What is the complementary color of #4f6fe2?

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

What colors go well with #4f6fe2?

For interface work: #F4F6FA as the surface, #C0CAED for borders, #4B5C9B for secondary text, #B36A19 as an accent and #12266D for hover and pressed states. For a palette, the analogous pair #4FB9E2 and #784FE2 stays calm, while #E2C24F is the loudest partner.

What is #4f6fe2 in CMYK for printing?

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

Is #4f6fe2 warm or cool?

Cool — it scores 91 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #654FE2; nudged cooler, #4D84E4.

Work with #4f6fe2 in the Color Lab