Skip to content

#3f2da4

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

RGB
63, 45, 164
HSL
249°, 57%, 41%
CMYK
62, 73, 0, 36
Luminance
0.0561

At a glance

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

Hex
#3f2da4
Hue
249°
blue
Saturation
57%
vivid
Lightness
41%
dark
Brightness
64%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0561
WCAG relative
Temperature
Cool
78/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.89:1
Closest name
Dark Slate Blue
ΔE2000 6.6
Where it sits
Hue249° of 360°
Saturation57%
Lightness41%
Temperature
Warm ← → Cool78% 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#3f2da4
RGBrgb(63, 45, 164)
HSLhsl(249, 57%, 41%)
CMYKcmyk(62%, 73%, 0%, 36%)
LABlab(28.4 42.1 -61.3)
LCHlch(28.4 74.4 304.5)
OKLCHoklch(0.401 0.180 281.4)
Decimal4140452
Display P3color(display-p3 0.247 0.176 0.643)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f2da4 on white: 9.89:1
AA ✓ pass · AA-large · AAA
Aa
#3f2da4 on black: 2.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0047A8
deuteranopia · #003FA2
tritanopia · #004E65

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #3f2da4 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5F4FB
#EBE9F6
#D2CDEE
#B1A7E7
#897BDB
#624FCF
#4A35C0
#3f2da4
#312380
#271D5D
#18123A
Base = 700Lightest = 50 · #F5F4FBDarkest = 950 · #18123A
:root {
  --brand-50: #F5F4FB;
  --brand-100: #EBE9F6;
  --brand-200: #D2CDEE;
  --brand-300: #B1A7E7;
  --brand-400: #897BDB;
  --brand-500: #624FCF;
  --brand-600: #4A35C0;
  --brand-700: #3f2da4;
  --brand-800: #312380;
  --brand-900: #271D5D;
  --brand-950: #18123A;
  --brand: #3f2da4;
  --brand-ink: #ffffff;
}

Colors that work with #3f2da4

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#C7C0ED
Hairlines and dividers
Muted text#574B9B
Captions on the surface
Accent#A49828
Second voice, not a rival
Dark variant#261B64
Hover, pressed, headers
Light variant#EDEBFA
Selected rows, tints
Dark surface#161424
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 #3f2da4

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#92A42D
Analogous left#2D57A4
Analogous right#7B2DA4
Split-complement 1#A47B2D
Split-complement 2#57A42D
Triadic 1#A43F2D
Triadic 2#2DA43F
Tetradic#A42D57

RGB percentages

Red24.7%
Green17.6%
Blue64.3%

CMYK percentages

Cyan61.6%
Magenta72.6%
Yellow0.0%
Key (black)35.7%

Color previews

#3f2da4 text on a black background

contrast 2.12:1

Card sample

#3f2da4 text on a white background

contrast 9.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(63, 45, 164, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(63, 45, 164, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3f2da4;
background: linear-gradient(135deg, #3f2da4, #8E2DA4);

Monochromatic scale

Palettes built from #3f2da4

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.

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

#3f2da4, answered

What color is #3f2da4?

#3f2da4 is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 6.6). It sits at 249° on the hue wheel with 57% saturation and 41% lightness, which reads as cool.

What is the RGB value of #3f2da4?

rgb(63, 45, 164) — 63 red, 45 green and 164 blue out of 255, or 24.7% / 17.6% / 64.3% by channel.

Is #3f2da4 a light or a dark color?

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

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

White. It scores 9.89:1 against #3f2da4, versus 2.12:1 for black — AAA at any size.

What is the complementary color of #3f2da4?

#92A42D sits directly opposite on the wheel. Softer options are the split-complements #A47B2D and #57A42D, which give the same contrast with far less vibration.

What colors go well with #3f2da4?

For interface work: #F5F4FA as the surface, #C7C0ED for borders, #574B9B for secondary text, #A49828 as an accent and #261B64 for hover and pressed states. For a palette, the analogous pair #2D57A4 and #7B2DA4 stays calm, while #92A42D is the loudest partner.

What is #3f2da4 in CMYK for printing?

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

Is #3f2da4 warm or cool?

Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6B2DA4; nudged cooler, #2B45A6.

Work with #3f2da4 in the Color Lab