Skip to content

#3f2f86

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

RGB
63, 47, 134
HSL
251°, 48%, 36%
CMYK
53, 65, 0, 48
Luminance
0.0481

At a glance

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

Hex
#3f2f86
Hue
251°
blue
Saturation
48%
vivid
Lightness
36%
dark
Brightness
53%
HSV value
Perceived
26%
weighted brightness
Luminance
0.0481
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.70:1
Closest name
Dark Slate Blue
ΔE2000 4.1
Where it sits
Hue251° of 360°
Saturation48%
Lightness36%
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#3f2f86
RGBrgb(63, 47, 134)
HSLhsl(251, 48%, 36%)
CMYKcmyk(53%, 65%, 0%, 48%)
LABlab(26.2 31.4 -46.5)
LCHlch(26.2 56.1 304.0)
OKLCHoklch(0.377 0.139 286.1)
Decimal4140934
Display P3color(display-p3 0.247 0.184 0.525)

Copy-ready code

/* CSS */
color: #3f2f86;
background-color: #3f2f86;
/* Tailwind (arbitrary) */
class="text-[#3f2f86] bg-[#3f2f86]"
/* SCSS */
$brand: #3f2f86;
/* SwiftUI */
Color(red: 0.247, green: 0.184, blue: 0.525)
/* Android */
Color.parseColor("#3f2f86")
/* Flutter */
Color(0xFF3F2F86)
/* Python / OpenCV (BGR) */
(134, 47, 63)

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

Accessibility — WCAG contrast

Aa
#3f2f86 on white: 10.70:1
AA ✓ pass · AA-large · AAA
Aa
#3f2f86 on black: 1.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004089
deuteranopia · #003B84
tritanopia · #244456

Color scale — 50 to 950

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

#F6F4FA
#ECEAF5
#D5D0EC
#B6ACE2
#9182D3
#6D59C5
#5540B5
#473597
#3f2f86
#2C2258
#1C1537
Base = 800Lightest = 50 · #F6F4FADarkest = 950 · #1C1537
:root {
  --brand-50: #F6F4FA;
  --brand-100: #ECEAF5;
  --brand-200: #D5D0EC;
  --brand-300: #B6ACE2;
  --brand-400: #9182D3;
  --brand-500: #6D59C5;
  --brand-600: #5540B5;
  --brand-700: #473597;
  --brand-800: #3f2f86;
  --brand-900: #2C2258;
  --brand-950: #1C1537;
  --brand: #3f2f86;
  --brand-ink: #ffffff;
}

Colors that work with #3f2f86

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#CAC3EA
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#8A832B
Second voice, not a rival
Dark variant#2C215E
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 #3f2f86

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#76862F
Analogous left#2F4B86
Analogous right#6A2F86
Split-complement 1#866A2F
Split-complement 2#4B862F
Triadic 1#863F2F
Triadic 2#2F863F
Tetradic#862F4B

RGB percentages

Red24.7%
Green18.4%
Blue52.5%

CMYK percentages

Cyan53.0%
Magenta64.9%
Yellow0.0%
Key (black)47.5%

Color previews

#3f2f86 text on a black background

contrast 1.96:1

Card sample

#3f2f86 text on a white background

contrast 10.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(63, 47, 134, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(63, 47, 134, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3f2f86;
background: linear-gradient(135deg, #3f2f86, #792F86);

Monochromatic scale

Palettes built from #3f2f86

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.

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

#3f2f86, answered

What color is #3f2f86?

#3f2f86 is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 4.1). It sits at 251° on the hue wheel with 48% saturation and 36% lightness, which reads as cool.

What is the RGB value of #3f2f86?

rgb(63, 47, 134) — 63 red, 47 green and 134 blue out of 255, or 24.7% / 18.4% / 52.5% by channel.

Is #3f2f86 a light or a dark color?

It is a dark color. Relative luminance is 0.0481 and perceived brightness is 26%, so white text on it reaches 10.70:1.

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

White. It scores 10.70:1 against #3f2f86, versus 1.96:1 for black — AAA at any size.

What is the complementary color of #3f2f86?

#76862F sits directly opposite on the wheel. Softer options are the split-complements #866A2F and #4B862F, which give the same contrast with far less vibration.

What colors go well with #3f2f86?

For interface work: #F5F4FA as the surface, #CAC3EA for borders, #594B9B for secondary text, #8A832B as an accent and #2C215E for hover and pressed states. For a palette, the analogous pair #2F4B86 and #6A2F86 stays calm, while #76862F is the loudest partner.

What is #3f2f86 in CMYK for printing?

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

Is #3f2f86 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 #5F2F86; nudged cooler, #2D3E88.

Work with #3f2f86 in the Color Lab