Skip to content

#3f1ccc

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

RGB
63, 28, 204
HSL
252°, 76%, 46%
CMYK
69, 86, 0, 20
Luminance
0.0625

At a glance

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

Hex
#3f1ccc
Hue
252°
blue
Saturation
76%
electric
Lightness
46%
balanced
Brightness
80%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0625
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.34:1
Closest name
Medium Blue
ΔE2000 4.3
Where it sits
Hue252° of 360°
Saturation76%
Lightness46%
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#3f1ccc
RGBrgb(63, 28, 204)
HSLhsl(252, 76%, 46%)
CMYKcmyk(69%, 86%, 0%, 20%)
LABlab(30.0 61.6 -82.4)
LCHlch(30.0 102.9 306.8)
OKLCHoklch(0.425 0.240 277.8)
Decimal4136140
Display P3color(display-p3 0.247 0.110 0.800)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f1ccc on white: 9.34:1
AA ✓ pass · AA-large · AAA
Aa
#3f1ccc on black: 2.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004DD1
deuteranopia · #003FC9
tritanopia · #005779

Color scale — 50 to 950

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

#F5F3FC
#EAE7F9
#D0C8F4
#AD9CF1
#846BEB
#5B3AE4
#3f1ccc
#3719B3
#2C1490
#231268
#160C41
Base = 600Lightest = 50 · #F5F3FCDarkest = 950 · #160C41
:root {
  --brand-50: #F5F3FC;
  --brand-100: #EAE7F9;
  --brand-200: #D0C8F4;
  --brand-300: #AD9CF1;
  --brand-400: #846BEB;
  --brand-500: #5B3AE4;
  --brand-600: #3f1ccc;
  --brand-700: #3719B3;
  --brand-800: #2C1490;
  --brand-900: #231268;
  --brand-950: #160C41;
  --brand: #3f1ccc;
  --brand-ink: #ffffff;
}

Colors that work with #3f1ccc

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#F6F4FA
Tinted page background
Border#C9C0ED
Hairlines and dividers
Muted text#5B4B9B
Captions on the surface
Accent#B8AF14
Second voice, not a rival
Dark variant#230F70
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 #3f1ccc

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#A9CC1C
Analogous left#1C51CC
Analogous right#971CCC
Split-complement 1#CC971C
Split-complement 2#51CC1C
Triadic 1#CC3F1C
Triadic 2#1CCC3F
Tetradic#CC1C51

RGB percentages

Red24.7%
Green11.0%
Blue80.0%

CMYK percentages

Cyan69.1%
Magenta86.3%
Yellow0.0%
Key (black)20.0%

Color previews

#3f1ccc text on a black background

contrast 2.25:1

Card sample

#3f1ccc text on a white background

contrast 9.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #3f1ccc

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.

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

#3f1ccc, answered

What color is #3f1ccc?

#3f1ccc is a balanced electric blue, closest to Medium Blue (ΔE2000 4.3). It sits at 252° on the hue wheel with 76% saturation and 46% lightness, which reads as cool.

What is the RGB value of #3f1ccc?

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

Is #3f1ccc a light or a dark color?

It is a dark color. Relative luminance is 0.0625 and perceived brightness is 31%, so white text on it reaches 9.34:1.

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

White. It scores 9.34:1 against #3f1ccc, versus 2.25:1 for black — AAA at any size.

What is the complementary color of #3f1ccc?

#A9CC1C sits directly opposite on the wheel. Softer options are the split-complements #CC971C and #51CC1C, which give the same contrast with far less vibration.

What colors go well with #3f1ccc?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5B4B9B for secondary text, #B8AF14 as an accent and #230F70 for hover and pressed states. For a palette, the analogous pair #1C51CC and #971CCC stays calm, while #A9CC1C is the loudest partner.

What is #3f1ccc in CMYK for printing?

cmyk(69%, 86%, 0%, 20%). 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 #3f1ccc 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 #7F1CCC; nudged cooler, #1A38CE.

Work with #3f1ccc in the Color Lab