Skip to content

#3f1fd3

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

RGB
63, 31, 211
HSL
251°, 74%, 48%
CMYK
70, 85, 0, 17
Luminance
0.0674

At a glance

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

Hex
#3f1fd3
Hue
251°
blue
Saturation
74%
vivid
Lightness
48%
balanced
Brightness
83%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0674
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.94:1
Closest name
Blue
ΔE2000 4.6
Where it sits
Hue251° of 360°
Saturation74%
Lightness48%
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#3f1fd3
RGBrgb(63, 31, 211)
HSLhsl(251, 74%, 48%)
CMYKcmyk(70%, 85%, 0%, 17%)
LABlab(31.2 62.4 -84.5)
LCHlch(31.2 105.1 306.4)
OKLCHoklch(0.435 0.246 276.9)
Decimal4136915
Display P3color(display-p3 0.247 0.122 0.827)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f1fd3 on white: 8.94:1
AA ✓ pass · AA-large · AAA
Aa
#3f1fd3 on black: 2.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0050D8
deuteranopia · #0042D0
tritanopia · #005B7E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #3f1fd3 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
#EAE7F9
#D0C8F4
#AC9DF1
#836CE9
#593BE2
#3f1fd3
#351AB2
#2B158E
#221367
#150C40
Base = 600Lightest = 50 · #F4F3FCDarkest = 950 · #150C40
:root {
  --brand-50: #F4F3FC;
  --brand-100: #EAE7F9;
  --brand-200: #D0C8F4;
  --brand-300: #AC9DF1;
  --brand-400: #836CE9;
  --brand-500: #593BE2;
  --brand-600: #3f1fd3;
  --brand-700: #351AB2;
  --brand-800: #2B158E;
  --brand-900: #221367;
  --brand-950: #150C40;
  --brand: #3f1fd3;
  --brand-ink: #ffffff;
}

Colors that work with #3f1fd3

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#B6AA16
Second voice, not a rival
Dark variant#21106F
Hover, pressed, headers
Light variant#ECE9FC
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 #3f1fd3

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#B3D31F
Analogous left#1F59D3
Analogous right#991FD3
Split-complement 1#D3991F
Split-complement 2#59D31F
Triadic 1#D33F1F
Triadic 2#1FD33F
Tetradic#D31F59

RGB percentages

Red24.7%
Green12.2%
Blue82.7%

CMYK percentages

Cyan70.1%
Magenta85.3%
Yellow0.0%
Key (black)17.3%

Color previews

#3f1fd3 text on a black background

contrast 2.35:1

Card sample

#3f1fd3 text on a white background

contrast 8.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #3f1fd3

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.

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

#3f1fd3, answered

What color is #3f1fd3?

#3f1fd3 is a balanced vivid blue, closest to Blue (ΔE2000 4.6). It sits at 251° on the hue wheel with 74% saturation and 48% lightness, which reads as cool.

What is the RGB value of #3f1fd3?

rgb(63, 31, 211) — 63 red, 31 green and 211 blue out of 255, or 24.7% / 12.2% / 82.7% by channel.

Is #3f1fd3 a light or a dark color?

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

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

White. It scores 8.94:1 against #3f1fd3, versus 2.35:1 for black — AAA at any size.

What is the complementary color of #3f1fd3?

#B3D31F sits directly opposite on the wheel. Softer options are the split-complements #D3991F and #59D31F, which give the same contrast with far less vibration.

What colors go well with #3f1fd3?

For interface work: #F5F4FA as the surface, #C8C0ED for borders, #594B9B for secondary text, #B6AA16 as an accent and #21106F for hover and pressed states. For a palette, the analogous pair #1F59D3 and #991FD3 stays calm, while #B3D31F is the loudest partner.

What is #3f1fd3 in CMYK for printing?

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

Is #3f1fd3 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 #811FD3; nudged cooler, #1D3DD6.

Work with #3f1fd3 in the Color Lab