Skip to content

#3f2afd

a balanced, electric blue · cool · closest name: Blue

RGB
63, 42, 253
HSL
246°, 98%, 58%
CMYK
75, 83, 0, 1
Luminance
0.0980

At a glance

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

Hex
#3f2afd
Hue
246°
blue
Saturation
98%
electric
Lightness
58%
balanced
Brightness
99%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0980
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.09:1
Closest name
Blue
ΔE2000 4.7
Where it sits
Hue246° of 360°
Saturation98%
Lightness58%
Temperature
Warm ← → Cool80% 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#3f2afd
RGBrgb(63, 42, 253)
HSLhsl(246, 98%, 58%)
CMYKcmyk(75%, 83%, 0%, 1%)
LABlab(37.5 69.8 -98.0)
LCHlch(37.5 120.3 305.5)
OKLCHoklch(0.492 0.284 273.0)
Decimal4139773
Display P3color(display-p3 0.247 0.165 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f2afd on white: 7.09:1
AA ✓ pass · AA-large · AAA
Aa
#3f2afd on black: 2.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062FF
deuteranopia · #004EFA
tritanopia · #007098

Color scale — 50 to 950

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

#F2F1FD
#E6E3FC
#C6C1FB
#9B90FE
#6958FD
#3f2afd
#1A02F2
#1602CA
#1202A2
#110674
#0B0449
Base = 500Lightest = 50 · #F2F1FDDarkest = 950 · #0B0449
:root {
  --brand-50: #F2F1FD;
  --brand-100: #E6E3FC;
  --brand-200: #C6C1FB;
  --brand-300: #9B90FE;
  --brand-400: #6958FD;
  --brand-500: #3f2afd;
  --brand-600: #1A02F2;
  --brand-700: #1602CA;
  --brand-800: #1202A2;
  --brand-900: #110674;
  --brand-950: #0B0449;
  --brand: #3f2afd;
  --brand-ink: #ffffff;
}

Colors that work with #3f2afd

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#C4C0ED
Hairlines and dividers
Muted text#534B9B
Captions on the surface
Accent#CCAE00
Second voice, not a rival
Dark variant#0E017E
Hover, pressed, headers
Light variant#E8E6FF
Selected rows, tints
Dark surface#151424
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 #3f2afd

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#E8FD2A
Analogous left#2A7EFD
Analogous right#A92AFD
Split-complement 1#FDA92A
Split-complement 2#7EFD2A
Triadic 1#FD3F2A
Triadic 2#2AFD3F
Tetradic#FD2A7E

RGB percentages

Red24.7%
Green16.5%
Blue99.2%

CMYK percentages

Cyan75.1%
Magenta83.4%
Yellow0.0%
Key (black)0.8%

Color previews

#3f2afd text on a black background

contrast 2.96:1

Card sample

#3f2afd text on a white background

contrast 7.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #3f2afd

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.

#3f2afd 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#3f2afd, answered

What color is #3f2afd?

#3f2afd is a balanced electric blue, closest to Blue (ΔE2000 4.7). It sits at 246° on the hue wheel with 98% saturation and 58% lightness, which reads as cool.

What is the RGB value of #3f2afd?

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

Is #3f2afd a light or a dark color?

It is a dark color. Relative luminance is 0.0980 and perceived brightness is 38%, so white text on it reaches 7.09:1.

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

White. It scores 7.09:1 against #3f2afd, versus 2.96:1 for black — AAA at any size.

What is the complementary color of #3f2afd?

#E8FD2A sits directly opposite on the wheel. Softer options are the split-complements #FDA92A and #7EFD2A, which give the same contrast with far less vibration.

What colors go well with #3f2afd?

For interface work: #F5F4FA as the surface, #C4C0ED for borders, #534B9B for secondary text, #CCAE00 as an accent and #0E017E for hover and pressed states. For a palette, the analogous pair #2A7EFD and #A92AFD stays calm, while #E8FD2A is the loudest partner.

What is #3f2afd in CMYK for printing?

cmyk(75%, 83%, 0%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #3f2afd warm or cool?

Cool — it scores 80 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8C2AFD; nudged cooler, #284FFF.

Work with #3f2afd in the Color Lab