Skip to content

#4f3bab

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

RGB
79, 59, 171
HSL
251°, 49%, 45%
CMYK
54, 66, 0, 33
Luminance
0.0773

At a glance

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

Hex
#4f3bab
Hue
251°
blue
Saturation
49%
vivid
Lightness
45%
balanced
Brightness
67%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0773
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.25:1
Closest name
Dark Slate Blue
ΔE2000 5.5
Where it sits
Hue251° of 360°
Saturation49%
Lightness45%
Temperature
Warm ← → Cool77% 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#4f3bab
RGBrgb(79, 59, 171)
HSLhsl(251, 49%, 45%)
CMYKcmyk(54%, 66%, 0%, 33%)
LABlab(33.4 38.8 -57.3)
LCHlch(33.4 69.2 304.1)
OKLCHoklch(0.443 0.171 285.2)
Decimal5192619
Display P3color(display-p3 0.310 0.231 0.671)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f3bab on white: 8.25:1
AA ✓ pass · AA-large · AAA
Aa
#4f3bab on black: 2.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0052AF
deuteranopia · #004BA9
tritanopia · #29576D

Color scale — 50 to 950

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

#F5F4FA
#ECEAF6
#D5D0EC
#B5ACE2
#9082D4
#6C58C5
#4f3bab
#463498
#382A79
#2C2259
#1B1537
Base = 600Lightest = 50 · #F5F4FADarkest = 950 · #1B1537
:root {
  --brand-50: #F5F4FA;
  --brand-100: #ECEAF6;
  --brand-200: #D5D0EC;
  --brand-300: #B5ACE2;
  --brand-400: #9082D4;
  --brand-500: #6C58C5;
  --brand-600: #4f3bab;
  --brand-700: #463498;
  --brand-800: #382A79;
  --brand-900: #2C2259;
  --brand-950: #1B1537;
  --brand: #4f3bab;
  --brand-ink: #ffffff;
}

Colors that work with #4f3bab

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#F5F4FA
Tinted page background
Border#C9C2EA
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#9C9430
Second voice, not a rival
Dark variant#2C215F
Hover, pressed, headers
Light variant#EEECF8
Selected rows, tints
Dark surface#171424
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 #4f3bab

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
  • Text on black or near-black surfaces
  • 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#97AB3B
Analogous left#3B5FAB
Analogous right#873BAB
Split-complement 1#AB873B
Split-complement 2#5FAB3B
Triadic 1#AB4F3B
Triadic 2#3BAB4F
Tetradic#AB3B5F

RGB percentages

Red31.0%
Green23.1%
Blue67.1%

CMYK percentages

Cyan53.8%
Magenta65.5%
Yellow0.0%
Key (black)32.9%

Color previews

#4f3bab text on a black background

contrast 2.55:1

Card sample

#4f3bab text on a white background

contrast 8.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f3bab

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.

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

#4f3bab, answered

What color is #4f3bab?

#4f3bab is a balanced vivid blue, closest to Dark Slate Blue (ΔE2000 5.5). It sits at 251° on the hue wheel with 49% saturation and 45% lightness, which reads as cool.

What is the RGB value of #4f3bab?

rgb(79, 59, 171) — 79 red, 59 green and 171 blue out of 255, or 31% / 23.1% / 67.1% by channel.

Is #4f3bab a light or a dark color?

It is a dark color. Relative luminance is 0.0773 and perceived brightness is 33%, so white text on it reaches 8.25:1.

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

White. It scores 8.25:1 against #4f3bab, versus 2.55:1 for black — AAA at any size.

What is the complementary color of #4f3bab?

#97AB3B sits directly opposite on the wheel. Softer options are the split-complements #AB873B and #5FAB3B, which give the same contrast with far less vibration.

What colors go well with #4f3bab?

For interface work: #F5F4FA as the surface, #C9C2EA for borders, #594B9B for secondary text, #9C9430 as an accent and #2C215F for hover and pressed states. For a palette, the analogous pair #3B5FAB and #873BAB stays calm, while #97AB3B is the loudest partner.

What is #4f3bab in CMYK for printing?

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

Is #4f3bab warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #783BAB; nudged cooler, #394FAD.

Work with #4f3bab in the Color Lab