Skip to content

#4f2f80

a dark, vivid violet · cool · closest name: Dark Slate Blue

RGB
79, 47, 128
HSL
264°, 46%, 34%
CMYK
38, 63, 0, 50
Luminance
0.0525

At a glance

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

Hex
#4f2f80
Hue
264°
violet
Saturation
46%
vivid
Lightness
34%
dark
Brightness
50%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0525
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
10.24:1
Closest name
Dark Slate Blue
ΔE2000 5.1
Where it sits
Hue264° of 360°
Saturation46%
Lightness34%
Temperature
Warm ← → Cool70% 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#4f2f80
RGBrgb(79, 47, 128)
HSLhsl(264, 46%, 34%)
CMYKcmyk(38%, 63%, 0%, 50%)
LABlab(27.4 33.1 -40.6)
LCHlch(27.4 52.4 309.1)
OKLCHoklch(0.389 0.131 298.3)
Decimal5189504
Display P3color(display-p3 0.310 0.184 0.502)

Copy-ready code

/* CSS */
color: #4f2f80;
background-color: #4f2f80;
/* Tailwind (arbitrary) */
class="text-[#4f2f80] bg-[#4f2f80]"
/* SCSS */
$brand: #4f2f80;
/* SwiftUI */
Color(red: 0.310, green: 0.184, blue: 0.502)
/* Android */
Color.parseColor("#4f2f80")
/* Flutter */
Color(0xFF4F2F80)
/* Python / OpenCV (BGR) */
(128, 47, 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 #4f2f80 · 10.24:1
Use #ffffffAAA at every size.
Aa
White text · 10.24:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.05:1
AA fail · AA large fail · AAA fail
Reading the other direction: #4f2f80 as text scores 10.24:1 on white and 2.05:1 on black.

Accessibility — WCAG contrast

Aa
#4f2f80 on white: 10.24:1
AA ✓ pass · AA-large · AAA
Aa
#4f2f80 on black: 2.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004183
deuteranopia · #0D407E
tritanopia · #444153

Color scale — 50 to 950

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

#F7F5FA
#EFEAF5
#DBD0EB
#C1ADE1
#A384D2
#845BC3
#6E42B3
#5C3795
#4f2f80
#382357
#231637
Base = 800Lightest = 50 · #F7F5FADarkest = 950 · #231637
:root {
  --brand-50: #F7F5FA;
  --brand-100: #EFEAF5;
  --brand-200: #DBD0EB;
  --brand-300: #C1ADE1;
  --brand-400: #A384D2;
  --brand-500: #845BC3;
  --brand-600: #6E42B3;
  --brand-700: #5C3795;
  --brand-800: #4f2f80;
  --brand-900: #382357;
  --brand-950: #231637;
  --brand: #4f2f80;
  --brand-ink: #ffffff;
}

Colors that work with #4f2f80

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#F7F4FA
Tinted page background
Border#D2C3E9
Hairlines and dividers
Muted text#6A4B9B
Captions on the surface
Accent#77832B
Second voice, not a rival
Dark variant#3A225D
Hover, pressed, headers
Light variant#F1ECF8
Selected rows, tints
Dark surface#1A1424
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 #4f2f80

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#60802F
Analogous left#2F3780
Analogous right#772F80
Split-complement 1#80772F
Split-complement 2#37802F
Triadic 1#804F2F
Triadic 2#2F804F
Tetradic#802F37

RGB percentages

Red31.0%
Green18.4%
Blue50.2%

CMYK percentages

Cyan38.3%
Magenta63.3%
Yellow0.0%
Key (black)49.8%

Color previews

#4f2f80 text on a black background

contrast 2.05:1

Card sample

#4f2f80 text on a white background

contrast 10.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 47, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 47, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f2f80;
background: linear-gradient(135deg, #4f2f80, #802F7B);

Monochromatic scale

Palettes built from #4f2f80

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.

#4f2f80 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#4f2f80, answered

What color is #4f2f80?

#4f2f80 is a dark vivid violet, closest to Dark Slate Blue (ΔE2000 5.1). It sits at 264° on the hue wheel with 46% saturation and 34% lightness, which reads as cool.

What is the RGB value of #4f2f80?

rgb(79, 47, 128) — 79 red, 47 green and 128 blue out of 255, or 31% / 18.4% / 50.2% by channel.

Is #4f2f80 a light or a dark color?

It is a dark color. Relative luminance is 0.0525 and perceived brightness is 28%, so white text on it reaches 10.24:1.

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

White. It scores 10.24:1 against #4f2f80, versus 2.05:1 for black — AAA at any size.

What is the complementary color of #4f2f80?

#60802F sits directly opposite on the wheel. Softer options are the split-complements #80772F and #37802F, which give the same contrast with far less vibration.

What colors go well with #4f2f80?

For interface work: #F7F4FA as the surface, #D2C3E9 for borders, #6A4B9B for secondary text, #77832B as an accent and #3A225D for hover and pressed states. For a palette, the analogous pair #2F3780 and #772F80 stays calm, while #60802F is the loudest partner.

What is #4f2f80 in CMYK for printing?

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

Is #4f2f80 warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6D2F80; nudged cooler, #302D82.

Work with #4f2f80 in the Color Lab