Skip to content

#3f2ac2

a balanced, vivid blue · cool · closest name: Medium Blue

RGB
63, 42, 194
HSL
248°, 64%, 46%
CMYK
68, 78, 0, 24
Luminance
0.0661

At a glance

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

Hex
#3f2ac2
Hue
248°
blue
Saturation
64%
vivid
Lightness
46%
balanced
Brightness
76%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0661
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.05:1
Closest name
Medium Blue
ΔE2000 5.8
Where it sits
Hue248° of 360°
Saturation64%
Lightness46%
Temperature
Warm ← → Cool79% 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#3f2ac2
RGBrgb(63, 42, 194)
HSLhsl(248, 64%, 46%)
CMYKcmyk(68%, 78%, 0%, 24%)
LABlab(30.9 52.9 -75.1)
LCHlch(30.9 91.9 305.2)
OKLCHoklch(0.428 0.219 278.0)
Decimal4139714
Display P3color(display-p3 0.247 0.165 0.761)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f2ac2 on white: 9.05:1
AA ✓ pass · AA-large · AAA
Aa
#3f2ac2 on black: 2.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004FC6
deuteranopia · #0042BF
tritanopia · #005876

Color scale — 50 to 950

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

#F5F4FB
#EAE8F7
#D0CBF1
#ADA3EB
#8475E1
#5B47D7
#3f2ac2
#3624A8
#2C1D86
#231961
#16103D
Base = 600Lightest = 50 · #F5F4FBDarkest = 950 · #16103D
:root {
  --brand-50: #F5F4FB;
  --brand-100: #EAE8F7;
  --brand-200: #D0CBF1;
  --brand-300: #ADA3EB;
  --brand-400: #8475E1;
  --brand-500: #5B47D7;
  --brand-600: #3f2ac2;
  --brand-700: #3624A8;
  --brand-800: #2C1D86;
  --brand-900: #231961;
  --brand-950: #16103D;
  --brand: #3f2ac2;
  --brand-ink: #ffffff;
}

Colors that work with #3f2ac2

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#C6C0ED
Hairlines and dividers
Muted text#564B9B
Captions on the surface
Accent#AC9C20
Second voice, not a rival
Dark variant#221769
Hover, pressed, headers
Light variant#ECEAFA
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 #3f2ac2

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
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#ADC22A
Analogous left#2A61C2
Analogous right#8B2AC2
Split-complement 1#C28B2A
Split-complement 2#61C22A
Triadic 1#C23F2A
Triadic 2#2AC23F
Tetradic#C22A61

RGB percentages

Red24.7%
Green16.5%
Blue76.1%

CMYK percentages

Cyan67.5%
Magenta78.4%
Yellow0.0%
Key (black)23.9%

Color previews

#3f2ac2 text on a black background

contrast 2.32:1

Card sample

#3f2ac2 text on a white background

contrast 9.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #3f2ac2

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.

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

#3f2ac2, answered

What color is #3f2ac2?

#3f2ac2 is a balanced vivid blue, closest to Medium Blue (ΔE2000 5.8). It sits at 248° on the hue wheel with 64% saturation and 46% lightness, which reads as cool.

What is the RGB value of #3f2ac2?

rgb(63, 42, 194) — 63 red, 42 green and 194 blue out of 255, or 24.7% / 16.5% / 76.1% by channel.

Is #3f2ac2 a light or a dark color?

It is a dark color. Relative luminance is 0.0661 and perceived brightness is 32%, so white text on it reaches 9.05:1.

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

White. It scores 9.05:1 against #3f2ac2, versus 2.32:1 for black — AAA at any size.

What is the complementary color of #3f2ac2?

#ADC22A sits directly opposite on the wheel. Softer options are the split-complements #C28B2A and #61C22A, which give the same contrast with far less vibration.

What colors go well with #3f2ac2?

For interface work: #F5F4FA as the surface, #C6C0ED for borders, #564B9B for secondary text, #AC9C20 as an accent and #221769 for hover and pressed states. For a palette, the analogous pair #2A61C2 and #8B2AC2 stays calm, while #ADC22A is the loudest partner.

What is #3f2ac2 in CMYK for printing?

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

Is #3f2ac2 warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #772AC2; nudged cooler, #284AC4.

Work with #3f2ac2 in the Color Lab