Skip to content

#3f1cdf

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

RGB
63, 28, 223
HSL
251°, 78%, 49%
CMYK
72, 87, 0, 13
Luminance
0.0721

At a glance

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

Hex
#3f1cdf
Hue
251°
blue
Saturation
78%
electric
Lightness
49%
balanced
Brightness
87%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0721
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.60:1
Closest name
Blue
ΔE2000 3.5
Where it sits
Hue251° of 360°
Saturation78%
Lightness49%
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#3f1cdf
RGBrgb(63, 28, 223)
HSLhsl(251, 78%, 49%)
CMYKcmyk(72%, 87%, 0%, 13%)
LABlab(32.3 66.7 -89.7)
LCHlch(32.3 111.7 306.6)
OKLCHoklch(0.447 0.260 275.8)
Decimal4136159
Display P3color(display-p3 0.247 0.110 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f1cdf on white: 8.60:1
AA ✓ pass · AA-large · AAA
Aa
#3f1cdf on black: 2.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0054E4
deuteranopia · #0043DC
tritanopia · #006084

Color scale — 50 to 950

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

#F4F3FC
#EAE6F9
#CFC7F5
#AB9BF2
#8169EC
#5738E6
#3f1cdf
#3317B5
#291291
#211169
#150B42
Base = 600Lightest = 50 · #F4F3FCDarkest = 950 · #150B42
:root {
  --brand-50: #F4F3FC;
  --brand-100: #EAE6F9;
  --brand-200: #CFC7F5;
  --brand-300: #AB9BF2;
  --brand-400: #8169EC;
  --brand-500: #5738E6;
  --brand-600: #3f1cdf;
  --brand-700: #3317B5;
  --brand-800: #291291;
  --brand-900: #211169;
  --brand-950: #150B42;
  --brand: #3f1cdf;
  --brand-ink: #ffffff;
}

Colors that work with #3f1cdf

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#C8C0ED
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#B9AE13
Second voice, not a rival
Dark variant#200E71
Hover, pressed, headers
Light variant#ECE8FC
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 #3f1cdf

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#BCDF1C
Analogous left#1C5ADF
Analogous right#A11CDF
Split-complement 1#DFA11C
Split-complement 2#5ADF1C
Triadic 1#DF3F1C
Triadic 2#1CDF3F
Tetradic#DF1C5A

RGB percentages

Red24.7%
Green11.0%
Blue87.5%

CMYK percentages

Cyan71.7%
Magenta87.4%
Yellow0.0%
Key (black)12.5%

Color previews

#3f1cdf text on a black background

contrast 2.44:1

Card sample

#3f1cdf text on a white background

contrast 8.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #3f1cdf

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.

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

#3f1cdf, answered

What color is #3f1cdf?

#3f1cdf is a balanced electric blue, closest to Blue (ΔE2000 3.5). It sits at 251° on the hue wheel with 78% saturation and 49% lightness, which reads as cool.

What is the RGB value of #3f1cdf?

rgb(63, 28, 223) — 63 red, 28 green and 223 blue out of 255, or 24.7% / 11% / 87.5% by channel.

Is #3f1cdf a light or a dark color?

It is a dark color. Relative luminance is 0.0721 and perceived brightness is 34%, so white text on it reaches 8.60:1.

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

White. It scores 8.60:1 against #3f1cdf, versus 2.44:1 for black — AAA at any size.

What is the complementary color of #3f1cdf?

#BCDF1C sits directly opposite on the wheel. Softer options are the split-complements #DFA11C and #5ADF1C, which give the same contrast with far less vibration.

What colors go well with #3f1cdf?

For interface work: #F5F4FA as the surface, #C8C0ED for borders, #594B9B for secondary text, #B9AE13 as an accent and #200E71 for hover and pressed states. For a palette, the analogous pair #1C5ADF and #A11CDF stays calm, while #BCDF1C is the loudest partner.

What is #3f1cdf in CMYK for printing?

cmyk(72%, 87%, 0%, 13%). 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 #3f1cdf 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 #871CDF; nudged cooler, #1939E1.

Work with #3f1cdf in the Color Lab