Skip to content

#4f6daf

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

RGB
79, 109, 175
HSL
221°, 38%, 50%
CMYK
55, 38, 0, 31
Luminance
0.1569

At a glance

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

Hex
#4f6daf
Hue
221°
blue
Saturation
38%
soft
Lightness
50%
balanced
Brightness
69%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1569
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Soft
Best ink
White
5.07:1
Closest name
Royal Blue
ΔE2000 6.2
Where it sits
Hue221° of 360°
Saturation38%
Lightness50%
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#4f6daf
RGBrgb(79, 109, 175)
HSLhsl(221, 38%, 50%)
CMYKcmyk(55%, 38%, 0%, 31%)
LABlab(46.6 8.8 -38.5)
LCHlch(46.6 39.5 282.9)
OKLCHoklch(0.542 0.110 264.5)
Decimal5205423
Display P3color(display-p3 0.310 0.427 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f6daf on white: 5.07:1
AA ✓ pass · AA-large · AAA
Aa
#4f6daf on black: 4.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5273B2
deuteranopia · #476AAE
tritanopia · #197B85

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #4f6daf 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
#8B9FCB
#647FB9
#4f6daf
#3F578D
#334670
#283552
#192134
Base = 600Lightest = 50 · #F5F7FADarkest = 950 · #192134
:root {
  --brand-50: #F5F7FA;
  --brand-100: #EBEEF4;
  --brand-200: #D3DAE9;
  --brand-300: #B2BFDC;
  --brand-400: #8B9FCB;
  --brand-500: #647FB9;
  --brand-600: #4f6daf;
  --brand-700: #3F578D;
  --brand-800: #334670;
  --brand-900: #283552;
  --brand-950: #192134;
  --brand: #4f6daf;
  --brand-ink: #ffffff;
}

Colors that work with #4f6daf

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#F4F6FA
Tinted page background
Border#C7D0E6
Hairlines and dividers
Muted text#4B649B
Captions on the surface
Accent#B4784A
Second voice, not a rival
Dark variant#283758
Hover, pressed, headers
Light variant#EDF0F7
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 #4f6daf

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#AF914F
Analogous left#4F9DAF
Analogous right#614FAF
Split-complement 1#AF614F
Split-complement 2#9DAF4F
Triadic 1#AF4F6D
Triadic 2#6DAF4F
Tetradic#AF4F9D

RGB percentages

Red31.0%
Green42.7%
Blue68.6%

CMYK percentages

Cyan54.9%
Magenta37.7%
Yellow0.0%
Key (black)31.4%

Color previews

#4f6daf text on a black background

contrast 4.14:1

Card sample

#4f6daf text on a white background

contrast 5.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 109, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 109, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f6daf;
background: linear-gradient(135deg, #4f6daf, #714FAF);

Monochromatic scale

Palettes built from #4f6daf

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.

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

#4f6daf, answered

What color is #4f6daf?

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

What is the RGB value of #4f6daf?

rgb(79, 109, 175) — 79 red, 109 green and 175 blue out of 255, or 31% / 42.7% / 68.6% by channel.

Is #4f6daf a light or a dark color?

It is a dark color. Relative luminance is 0.1569 and perceived brightness is 44%, so white text on it reaches 5.07:1.

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

White. It scores 5.07:1 against #4f6daf, versus 4.14:1 for black — AA at any size.

What is the complementary color of #4f6daf?

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

What colors go well with #4f6daf?

For interface work: #F4F6FA as the surface, #C7D0E6 for borders, #4B649B for secondary text, #B4784A as an accent and #283758 for hover and pressed states. For a palette, the analogous pair #4F9DAF and #614FAF stays calm, while #AF914F is the loudest partner.

What is #4f6daf in CMYK for printing?

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

Is #4f6daf 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 #544FAF; nudged cooler, #4C77B2.

Work with #4f6daf in the Color Lab