Skip to content

#4d397b

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

RGB
77, 57, 123
HSL
258°, 37%, 35%
CMYK
37, 54, 0, 52
Luminance
0.0593

At a glance

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

Hex
#4d397b
Hue
258°
violet
Saturation
37%
soft
Lightness
35%
dark
Brightness
48%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0593
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Soft
Best ink
White
9.60:1
Closest name
Dark Slate Blue
ΔE2000 3.9
Where it sits
Hue258° of 360°
Saturation37%
Lightness35%
Temperature
Warm ← → Cool73% 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#4d397b
RGBrgb(77, 57, 123)
HSLhsl(258, 37%, 35%)
CMYKcmyk(37%, 54%, 0%, 52%)
LABlab(29.3 25.0 -34.6)
LCHlch(29.3 42.7 305.8)
OKLCHoklch(0.400 0.108 295.0)
Decimal5060987
Display P3color(display-p3 0.302 0.224 0.482)

Copy-ready code

/* CSS */
color: #4d397b;
background-color: #4d397b;
/* Tailwind (arbitrary) */
class="text-[#4d397b] bg-[#4d397b]"
/* SCSS */
$brand: #4d397b;
/* SwiftUI */
Color(red: 0.302, green: 0.224, blue: 0.482)
/* Android */
Color.parseColor("#4d397b")
/* Flutter */
Color(0xFF4D397B)
/* Python / OpenCV (BGR) */
(123, 57, 77)

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 #4d397b · 9.60:1
Use #ffffffAAA at every size.
Aa
White text · 9.60:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.19:1
AA fail · AA large fail · AAA fail
Reading the other direction: #4d397b as text scores 9.60:1 on white and 2.19:1 on black.

Accessibility — WCAG contrast

Aa
#4d397b on white: 9.60:1
AA ✓ pass · AA-large · AAA
Aa
#4d397b on black: 2.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1F457D
deuteranopia · #244479
tritanopia · #424654

Color scale — 50 to 950

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

#F6F5FA
#EEEBF4
#DAD3E9
#BFB2DB
#9F8CCA
#7F66B8
#694DA7
#57418B
#4d397b
#352952
#211933
Base = 800Lightest = 50 · #F6F5FADarkest = 950 · #211933
:root {
  --brand-50: #F6F5FA;
  --brand-100: #EEEBF4;
  --brand-200: #DAD3E9;
  --brand-300: #BFB2DB;
  --brand-400: #9F8CCA;
  --brand-500: #7F66B8;
  --brand-600: #694DA7;
  --brand-700: #57418B;
  --brand-800: #4d397b;
  --brand-900: #352952;
  --brand-950: #211933;
  --brand: #4d397b;
  --brand-ink: #ffffff;
}

Colors that work with #4d397b

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#F6F5FA
Tinted page background
Border#D0C7E5
Hairlines and dividers
Muted text#634B9B
Captions on the surface
Accent#7B7F35
Second voice, not a rival
Dark variant#372857
Hover, pressed, headers
Light variant#F0EEF7
Selected rows, tints
Dark surface#191424
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 #4d397b

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#677B39
Analogous left#39467B
Analogous right#6E397B
Split-complement 1#7B6E39
Split-complement 2#467B39
Triadic 1#7B4D39
Triadic 2#397B4D
Tetradic#7B3946

RGB percentages

Red30.2%
Green22.4%
Blue48.2%

CMYK percentages

Cyan37.4%
Magenta53.7%
Yellow0.0%
Key (black)51.8%

Color previews

#4d397b text on a black background

contrast 2.19:1

Card sample

#4d397b text on a white background

contrast 9.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(77, 57, 123, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(77, 57, 123, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4d397b;
background: linear-gradient(135deg, #4d397b, #79397B);

Monochromatic scale

Palettes built from #4d397b

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.

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

#4d397b, answered

What color is #4d397b?

#4d397b is a dark soft violet, closest to Dark Slate Blue (ΔE2000 3.9). It sits at 258° on the hue wheel with 37% saturation and 35% lightness, which reads as cool.

What is the RGB value of #4d397b?

rgb(77, 57, 123) — 77 red, 57 green and 123 blue out of 255, or 30.2% / 22.4% / 48.2% by channel.

Is #4d397b a light or a dark color?

It is a dark color. Relative luminance is 0.0593 and perceived brightness is 29%, so white text on it reaches 9.60:1.

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

White. It scores 9.60:1 against #4d397b, versus 2.19:1 for black — AAA at any size.

What is the complementary color of #4d397b?

#677B39 sits directly opposite on the wheel. Softer options are the split-complements #7B6E39 and #467B39, which give the same contrast with far less vibration.

What colors go well with #4d397b?

For interface work: #F6F5FA as the surface, #D0C7E5 for borders, #634B9B for secondary text, #7B7F35 as an accent and #372857 for hover and pressed states. For a palette, the analogous pair #39467B and #6E397B stays calm, while #677B39 is the loudest partner.

What is #4d397b in CMYK for printing?

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

Is #4d397b warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #65397B; nudged cooler, #373C7D.

Work with #4d397b in the Color Lab