Skip to content

#3f2c7f

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

RGB
63, 44, 127
HSL
254°, 49%, 34%
CMYK
50, 65, 0, 50
Luminance
0.0439

At a glance

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

Hex
#3f2c7f
Hue
254°
blue
Saturation
49%
vivid
Lightness
34%
dark
Brightness
50%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0439
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
11.18:1
Closest name
Dark Slate Blue
ΔE2000 5
Where it sits
Hue254° of 360°
Saturation49%
Lightness34%
Temperature
Warm ← → Cool76% 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#3f2c7f
RGBrgb(63, 44, 127)
HSLhsl(254, 49%, 34%)
CMYKcmyk(50%, 65%, 0%, 50%)
LABlab(24.9 31.0 -44.2)
LCHlch(24.9 54.0 305.0)
OKLCHoklch(0.366 0.134 288.5)
Decimal4140159
Display P3color(display-p3 0.247 0.173 0.498)

Copy-ready code

/* CSS */
color: #3f2c7f;
background-color: #3f2c7f;
/* Tailwind (arbitrary) */
class="text-[#3f2c7f] bg-[#3f2c7f]"
/* SCSS */
$brand: #3f2c7f;
/* SwiftUI */
Color(red: 0.247, green: 0.173, blue: 0.498)
/* Android */
Color.parseColor("#3f2c7f")
/* Flutter */
Color(0xFF3F2C7F)
/* Python / OpenCV (BGR) */
(127, 44, 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 #3f2c7f · 11.18:1
Use #ffffffAAA at every size.
Aa
White text · 11.18:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.88:1
AA fail · AA large fail · AAA fail
Reading the other direction: #3f2c7f as text scores 11.18:1 on white and 1.88:1 on black.

Accessibility — WCAG contrast

Aa
#3f2c7f on white: 11.18:1
AA ✓ pass · AA-large · AAA
Aa
#3f2c7f on black: 1.88:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003D82
deuteranopia · #00397D
tritanopia · #294051

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #3f2c7f 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
#EDEAF5
#D6D0EC
#B8ACE2
#9582D4
#7158C5
#5A3FB6
#4B3597
#3f2c7f
#2E2259
#1D1537
Base = 800Lightest = 50 · #F6F4FADarkest = 950 · #1D1537
:root {
  --brand-50: #F6F4FA;
  --brand-100: #EDEAF5;
  --brand-200: #D6D0EC;
  --brand-300: #B8ACE2;
  --brand-400: #9582D4;
  --brand-500: #7158C5;
  --brand-600: #5A3FB6;
  --brand-700: #4B3597;
  --brand-800: #3f2c7f;
  --brand-900: #2E2259;
  --brand-950: #1D1537;
  --brand: #3f2c7f;
  --brand-ink: #ffffff;
}

Colors that work with #3f2c7f

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#F6F4FA
Tinted page background
Border#CBC2EA
Hairlines and dividers
Muted text#5D4B9B
Captions on the surface
Accent#828029
Second voice, not a rival
Dark variant#2F215F
Hover, pressed, headers
Light variant#EFECF8
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 #3f2c7f

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#6C7F2C
Analogous left#2C437F
Analogous right#682C7F
Split-complement 1#7F682C
Split-complement 2#437F2C
Triadic 1#7F3F2C
Triadic 2#2C7F3F
Tetradic#7F2C43

RGB percentages

Red24.7%
Green17.3%
Blue49.8%

CMYK percentages

Cyan50.4%
Magenta65.4%
Yellow0.0%
Key (black)50.2%

Color previews

#3f2c7f text on a black background

contrast 1.88:1

Card sample

#3f2c7f text on a white background

contrast 11.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(63, 44, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(63, 44, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3f2c7f;
background: linear-gradient(135deg, #3f2c7f, #762C7F);

Monochromatic scale

Palettes built from #3f2c7f

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.

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

#3f2c7f, answered

What color is #3f2c7f?

#3f2c7f is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 5). It sits at 254° on the hue wheel with 49% saturation and 34% lightness, which reads as cool.

What is the RGB value of #3f2c7f?

rgb(63, 44, 127) — 63 red, 44 green and 127 blue out of 255, or 24.7% / 17.3% / 49.8% by channel.

Is #3f2c7f a light or a dark color?

It is a dark color. Relative luminance is 0.0439 and perceived brightness is 25%, so white text on it reaches 11.18:1.

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

White. It scores 11.18:1 against #3f2c7f, versus 1.88:1 for black — AAA at any size.

What is the complementary color of #3f2c7f?

#6C7F2C sits directly opposite on the wheel. Softer options are the split-complements #7F682C and #437F2C, which give the same contrast with far less vibration.

What colors go well with #3f2c7f?

For interface work: #F6F4FA as the surface, #CBC2EA for borders, #5D4B9B for secondary text, #828029 as an accent and #2F215F for hover and pressed states. For a palette, the analogous pair #2C437F and #682C7F stays calm, while #6C7F2C is the loudest partner.

What is #3f2c7f in CMYK for printing?

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

Is #3f2c7f warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5D2C7F; nudged cooler, #2A3681.

Work with #3f2c7f in the Color Lab