Skip to content

#4f4fc5

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

RGB
79, 79, 197
HSL
240°, 50%, 54%
CMYK
60, 60, 0, 23
Luminance
0.1129

At a glance

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

Hex
#4f4fc5
Hue
240°
blue
Saturation
50%
vivid
Lightness
54%
balanced
Brightness
77%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1129
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
6.45:1
Closest name
Slate Blue
ΔE2000 5.4
Where it sits
Hue240° of 360°
Saturation50%
Lightness54%
Temperature
Warm ← → Cool83% 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#4f4fc5
RGBrgb(79, 79, 197)
HSLhsl(240, 50%, 54%)
CMYKcmyk(60%, 60%, 0%, 23%)
LABlab(40.1 35.0 -61.8)
LCHlch(40.1 71.0 299.5)
OKLCHoklch(0.497 0.179 277.7)
Decimal5197765
Display P3color(display-p3 0.310 0.310 0.773)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f4fc5 on white: 6.45:1
AA ✓ pass · AA-large · AAA
Aa
#4f4fc5 on black: 3.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0063C9
deuteranopia · #0059C3
tritanopia · #006C82

Color scale — 50 to 950

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

#F4F4FA
#EAEAF6
#CFCFED
#ABABE3
#8080D5
#4f4fc5
#3D3DB8
#333399
#28287B
#21215A
#151538
Base = 500Lightest = 50 · #F4F4FADarkest = 950 · #151538
:root {
  --brand-50: #F4F4FA;
  --brand-100: #EAEAF6;
  --brand-200: #CFCFED;
  --brand-300: #ABABE3;
  --brand-400: #8080D5;
  --brand-500: #4f4fc5;
  --brand-600: #3D3DB8;
  --brand-700: #333399;
  --brand-800: #28287B;
  --brand-900: #21215A;
  --brand-950: #151538;
  --brand: #4f4fc5;
  --brand-ink: #ffffff;
}

Colors that work with #4f4fc5

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#F4F4FA
Tinted page background
Border#C2C2EB
Hairlines and dividers
Muted text#4B4B9B
Captions on the surface
Accent#9E822E
Second voice, not a rival
Dark variant#202060
Hover, pressed, headers
Light variant#ECECF9
Selected rows, tints
Dark surface#141424
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 #4f4fc5

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#C5C54F
Analogous left#4F8AC5
Analogous right#8A4FC5
Split-complement 1#C58A4F
Split-complement 2#8AC54F
Triadic 1#C54F4F
Triadic 2#4FC54F
Tetradic#C54F8A

RGB percentages

Red31.0%
Green31.0%
Blue77.3%

CMYK percentages

Cyan59.9%
Magenta59.9%
Yellow0.0%
Key (black)22.7%

Color previews

#4f4fc5 text on a black background

contrast 3.26:1

Card sample

#4f4fc5 text on a white background

contrast 6.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f4fc5

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.

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

#4f4fc5, answered

What color is #4f4fc5?

#4f4fc5 is a balanced vivid blue, closest to Slate Blue (ΔE2000 5.4). It sits at 240° on the hue wheel with 50% saturation and 54% lightness, which reads as cool.

What is the RGB value of #4f4fc5?

rgb(79, 79, 197) — 79 red, 79 green and 197 blue out of 255, or 31% / 31% / 77.3% by channel.

Is #4f4fc5 a light or a dark color?

It is a dark color. Relative luminance is 0.1129 and perceived brightness is 39%, so white text on it reaches 6.45:1.

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

White. It scores 6.45:1 against #4f4fc5, versus 3.26:1 for black — AA at any size.

What is the complementary color of #4f4fc5?

#C5C54F sits directly opposite on the wheel. Softer options are the split-complements #C58A4F and #8AC54F, which give the same contrast with far less vibration.

What colors go well with #4f4fc5?

For interface work: #F4F4FA as the surface, #C2C2EB for borders, #4B4B9B for secondary text, #9E822E as an accent and #202060 for hover and pressed states. For a palette, the analogous pair #4F8AC5 and #8A4FC5 stays calm, while #C5C54F is the loudest partner.

What is #4f4fc5 in CMYK for printing?

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

Is #4f4fc5 warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7A4FC5; nudged cooler, #4D71C7.

Work with #4f4fc5 in the Color Lab