Skip to content

#3f09ac

a dark, electric violet · cool · closest name: Medium Blue

RGB
63, 9, 172
HSL
260°, 90%, 36%
CMYK
63, 95, 0, 33
Luminance
0.0423

At a glance

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

Hex
#3f09ac
Hue
260°
violet
Saturation
90%
electric
Lightness
36%
dark
Brightness
67%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0423
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Electric
Best ink
White
11.38:1
Closest name
Medium Blue
ΔE2000 4.6
Where it sits
Hue260° of 360°
Saturation90%
Lightness36%
Temperature
Warm ← → Cool72% 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#3f09ac
RGBrgb(63, 9, 172)
HSLhsl(260, 90%, 36%)
CMYKcmyk(63%, 95%, 0%, 33%)
LABlab(24.4 58.6 -72.8)
LCHlch(24.4 93.4 308.8)
OKLCHoklch(0.376 0.216 283.5)
Decimal4131244
Display P3color(display-p3 0.247 0.035 0.675)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f09ac on white: 11.38:1
AA ✓ pass · AA-large · AAA
Aa
#3f09ac on black: 1.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003EB0
deuteranopia · #0035A9
tritanopia · #004564

Color scale — 50 to 950

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

#F5F2FD
#ECE5FB
#D5C3F8
#B694F9
#915FF7
#6D2AF4
#550CE9
#470AC2
#3f09ac
#2C0A70
#1C0746
Base = 800Lightest = 50 · #F5F2FDDarkest = 950 · #1C0746
:root {
  --brand-50: #F5F2FD;
  --brand-100: #ECE5FB;
  --brand-200: #D5C3F8;
  --brand-300: #B694F9;
  --brand-400: #915FF7;
  --brand-500: #6D2AF4;
  --brand-600: #550CE9;
  --brand-700: #470AC2;
  --brand-800: #3f09ac;
  --brand-900: #2C0A70;
  --brand-950: #1C0746;
  --brand: #3f09ac;
  --brand-ink: #ffffff;
}

Colors that work with #3f09ac

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#CFC0ED
Hairlines and dividers
Muted text#654B9B
Captions on the surface
Accent#B7C606
Second voice, not a rival
Dark variant#2C0679
Hover, pressed, headers
Light variant#EEE7FE
Selected rows, tints
Dark surface#191424
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 #3f09ac

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#76AC09
Analogous left#0924AC
Analogous right#9109AC
Split-complement 1#AC9109
Split-complement 2#24AC09
Triadic 1#AC3F09
Triadic 2#09AC3F
Tetradic#AC0924

RGB percentages

Red24.7%
Green3.5%
Blue67.5%

CMYK percentages

Cyan63.4%
Magenta94.8%
Yellow0.0%
Key (black)32.5%

Color previews

#3f09ac text on a black background

contrast 1.85:1

Card sample

#3f09ac text on a white background

contrast 11.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #3f09ac

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.

#3f09ac in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#3f09ac, answered

What color is #3f09ac?

#3f09ac is a dark electric violet, closest to Medium Blue (ΔE2000 4.6). It sits at 260° on the hue wheel with 90% saturation and 36% lightness, which reads as cool.

What is the RGB value of #3f09ac?

rgb(63, 9, 172) — 63 red, 9 green and 172 blue out of 255, or 24.7% / 3.5% / 67.5% by channel.

Is #3f09ac a light or a dark color?

It is a dark color. Relative luminance is 0.0423 and perceived brightness is 27%, so white text on it reaches 11.38:1.

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

White. It scores 11.38:1 against #3f09ac, versus 1.85:1 for black — AAA at any size.

What is the complementary color of #3f09ac?

#76AC09 sits directly opposite on the wheel. Softer options are the split-complements #AC9109 and #24AC09, which give the same contrast with far less vibration.

What colors go well with #3f09ac?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #654B9B for secondary text, #B7C606 as an accent and #2C0679 for hover and pressed states. For a palette, the analogous pair #0924AC and #9109AC stays calm, while #76AC09 is the loudest partner.

What is #3f09ac in CMYK for printing?

cmyk(63%, 95%, 0%, 33%). 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 #3f09ac warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7B09AC; nudged cooler, #070DAE.

Work with #3f09ac in the Color Lab