Skip to content

#3b397b

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

RGB
59, 57, 123
HSL
242°, 37%, 35%
CMYK
52, 54, 0, 52
Luminance
0.0529

At a glance

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

Hex
#3b397b
Hue
242°
blue
Saturation
37%
soft
Lightness
35%
dark
Brightness
48%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0529
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Soft
Best ink
White
10.21:1
Closest name
Dark Slate Blue
ΔE2000 3.5
Where it sits
Hue242° of 360°
Saturation37%
Lightness35%
Temperature
Warm ← → Cool82% 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#3b397b
RGBrgb(59, 57, 123)
HSLhsl(242, 37%, 35%)
CMYKcmyk(52%, 54%, 0%, 52%)
LABlab(27.5 20.3 -37.5)
LCHlch(27.5 42.6 298.5)
OKLCHoklch(0.383 0.109 281.3)
Decimal3881339
Display P3color(display-p3 0.231 0.224 0.482)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#3b397b on white: 10.21:1
AA ✓ pass · AA-large · AAA
Aa
#3b397b on black: 2.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #18437D
deuteranopia · #123F7A
tritanopia · #224754

Color scale — 50 to 950

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

#F5F5FA
#ECEBF4
#D4D3E9
#B4B2DB
#8E8CCA
#6866B8
#504DA7
#43418B
#3b397b
#2A2952
#1A1933
Base = 800Lightest = 50 · #F5F5FADarkest = 950 · #1A1933
:root {
  --brand-50: #F5F5FA;
  --brand-100: #ECEBF4;
  --brand-200: #D4D3E9;
  --brand-300: #B4B2DB;
  --brand-400: #8E8CCA;
  --brand-500: #6866B8;
  --brand-600: #504DA7;
  --brand-700: #43418B;
  --brand-800: #3b397b;
  --brand-900: #2A2952;
  --brand-950: #1A1933;
  --brand: #3b397b;
  --brand-ink: #ffffff;
}

Colors that work with #3b397b

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#F5F5FA
Tinted page background
Border#C8C7E5
Hairlines and dividers
Muted text#4D4B9B
Captions on the surface
Accent#7F6F35
Second voice, not a rival
Dark variant#2A2857
Hover, pressed, headers
Light variant#EEEEF7
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 #3b397b

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#797B39
Analogous left#39587B
Analogous right#5C397B
Split-complement 1#7B5C39
Split-complement 2#587B39
Triadic 1#7B3B39
Triadic 2#397B3B
Tetradic#7B3958

RGB percentages

Red23.1%
Green22.4%
Blue48.2%

CMYK percentages

Cyan52.0%
Magenta53.7%
Yellow0.0%
Key (black)51.8%

Color previews

#3b397b text on a black background

contrast 2.06:1

Card sample

#3b397b text on a white background

contrast 10.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3b397b;
Background color
Panel with #3b397b background
background-color: #3b397b;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #3b397b;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #3b397b

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.

#3b397b 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.

#3b397b, answered

What color is #3b397b?

#3b397b is a dark soft blue, closest to Dark Slate Blue (ΔE2000 3.5). It sits at 242° on the hue wheel with 37% saturation and 35% lightness, which reads as cool.

What is the RGB value of #3b397b?

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

Is #3b397b a light or a dark color?

It is a dark color. Relative luminance is 0.0529 and perceived brightness is 27%, so white text on it reaches 10.21:1.

Should I use black or white text on #3b397b?

White. It scores 10.21:1 against #3b397b, versus 2.06:1 for black — AAA at any size.

What is the complementary color of #3b397b?

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

What colors go well with #3b397b?

For interface work: #F5F5FA as the surface, #C8C7E5 for borders, #4D4B9B for secondary text, #7F6F35 as an accent and #2A2857 for hover and pressed states. For a palette, the analogous pair #39587B and #5C397B stays calm, while #797B39 is the loudest partner.

What is #3b397b in CMYK for printing?

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

Is #3b397b warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #53397B; nudged cooler, #374F7D.

Work with #3b397b in the Color Lab