Skip to content

#4f6cac

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

RGB
79, 108, 172
HSL
221°, 37%, 49%
CMYK
54, 37, 0, 33
Luminance
0.1537

At a glance

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

Hex
#4f6cac
Hue
221°
blue
Saturation
37%
soft
Lightness
49%
balanced
Brightness
67%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1537
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Soft
Best ink
White
5.16:1
Closest name
Royal Blue
ΔE2000 6.6
Where it sits
Hue221° of 360°
Saturation37%
Lightness49%
Temperature
Warm ← → Cool94% 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#4f6cac
RGBrgb(79, 108, 172)
HSLhsl(221, 37%, 49%)
CMYKcmyk(54%, 37%, 0%, 33%)
LABlab(46.1 8.4 -37.5)
LCHlch(46.1 38.4 282.7)
OKLCHoklch(0.538 0.106 264.6)
Decimal5205164
Display P3color(display-p3 0.310 0.424 0.675)

Copy-ready code

/* CSS */
color: #4f6cac;
background-color: #4f6cac;
/* Tailwind (arbitrary) */
class="text-[#4f6cac] bg-[#4f6cac]"
/* SCSS */
$brand: #4f6cac;
/* SwiftUI */
Color(red: 0.310, green: 0.424, blue: 0.675)
/* Android */
Color.parseColor("#4f6cac")
/* Flutter */
Color(0xFF4F6CAC)
/* Python / OpenCV (BGR) */
(172, 108, 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#ffffff on #4f6cac · 5.16:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.16:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.07:1
AA fail · AA large pass · AAA fail
Reading the other direction: #4f6cac as text scores 5.16:1 on white and 4.07:1 on black.

Accessibility — WCAG contrast

Aa
#4f6cac on white: 5.16:1
AA ✓ pass · AA-large · AAA
Aa
#4f6cac on black: 4.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5272AF
deuteranopia · #4769AB
tritanopia · #1E7A84

Color scale — 50 to 950

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

#F5F7FA
#EBEEF4
#D3DAE9
#B2BFDC
#8C9FCA
#657FB8
#4f6cac
#40588C
#334670
#283552
#192133
Base = 600Lightest = 50 · #F5F7FADarkest = 950 · #192133
:root {
  --brand-50: #F5F7FA;
  --brand-100: #EBEEF4;
  --brand-200: #D3DAE9;
  --brand-300: #B2BFDC;
  --brand-400: #8C9FCA;
  --brand-500: #657FB8;
  --brand-600: #4f6cac;
  --brand-700: #40588C;
  --brand-800: #334670;
  --brand-900: #283552;
  --brand-950: #192133;
  --brand: #4f6cac;
  --brand-ink: #ffffff;
}

Colors that work with #4f6cac

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

Text on it#ffffff
White wins here
Surface#F5F6FA
Tinted page background
Border#C7D0E5
Hairlines and dividers
Muted text#4B649B
Captions on the surface
Accent#B1774A
Second voice, not a rival
Dark variant#283757
Hover, pressed, headers
Light variant#EEF0F7
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 #4f6cac

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#AC8F4F
Analogous left#4F9AAC
Analogous right#604FAC
Split-complement 1#AC604F
Split-complement 2#9AAC4F
Triadic 1#AC4F6C
Triadic 2#6CAC4F
Tetradic#AC4F9A

RGB percentages

Red31.0%
Green42.4%
Blue67.5%

CMYK percentages

Cyan54.1%
Magenta37.2%
Yellow0.0%
Key (black)32.5%

Color previews

#4f6cac text on a black background

contrast 4.07:1

Card sample

#4f6cac text on a white background

contrast 5.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 108, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 108, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f6cac;
background: linear-gradient(135deg, #4f6cac, #704FAC);

Monochromatic scale

Palettes built from #4f6cac

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.

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

#4f6cac, answered

What color is #4f6cac?

#4f6cac is a balanced soft blue, closest to Royal Blue (ΔE2000 6.6). It sits at 221° on the hue wheel with 37% saturation and 49% lightness, which reads as cool.

What is the RGB value of #4f6cac?

rgb(79, 108, 172) — 79 red, 108 green and 172 blue out of 255, or 31% / 42.4% / 67.5% by channel.

Is #4f6cac a light or a dark color?

It is a dark color. Relative luminance is 0.1537 and perceived brightness is 43%, so white text on it reaches 5.16:1.

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

White. It scores 5.16:1 against #4f6cac, versus 4.07:1 for black — AA at any size.

What is the complementary color of #4f6cac?

#AC8F4F sits directly opposite on the wheel. Softer options are the split-complements #AC604F and #9AAC4F, which give the same contrast with far less vibration.

What colors go well with #4f6cac?

For interface work: #F5F6FA as the surface, #C7D0E5 for borders, #4B649B for secondary text, #B1774A as an accent and #283757 for hover and pressed states. For a palette, the analogous pair #4F9AAC and #604FAC stays calm, while #AC8F4F is the loudest partner.

What is #4f6cac in CMYK for printing?

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

Is #4f6cac warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #544FAC; nudged cooler, #4C76AF.

Work with #4f6cac in the Color Lab