Skip to content

#3f20af

a dark, vivid blue · cool · closest name: Medium Blue

RGB
63, 32, 175
HSL
253°, 69%, 41%
CMYK
64, 82, 0, 31
Luminance
0.0518

At a glance

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

Hex
#3f20af
Hue
253°
blue
Saturation
69%
vivid
Lightness
41%
dark
Brightness
69%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0518
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.31:1
Closest name
Medium Blue
ΔE2000 5.2
Where it sits
Hue253° of 360°
Saturation69%
Lightness41%
Temperature
Warm ← → Cool76% 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#3f20af
RGBrgb(63, 32, 175)
HSLhsl(253, 69%, 41%)
CMYKcmyk(64%, 82%, 0%, 31%)
LABlab(27.3 52.0 -69.9)
LCHlch(27.3 87.1 306.6)
OKLCHoklch(0.396 0.206 281.5)
Decimal4137135
Display P3color(display-p3 0.247 0.125 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#3f20af on white: 10.31:1
AA ✓ pass · AA-large · AAA
Aa
#3f20af on black: 2.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0045B3
deuteranopia · #003BAD
tritanopia · #004C69

Color scale — 50 to 950

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

#F5F3FB
#EBE7F8
#D2CAF2
#B1A0EE
#8A71E5
#6341DC
#4A26CF
#3f20af
#32198A
#271664
#180E3F
Base = 700Lightest = 50 · #F5F3FBDarkest = 950 · #180E3F
:root {
  --brand-50: #F5F3FB;
  --brand-100: #EBE7F8;
  --brand-200: #D2CAF2;
  --brand-300: #B1A0EE;
  --brand-400: #8A71E5;
  --brand-500: #6341DC;
  --brand-600: #4A26CF;
  --brand-700: #3f20af;
  --brand-800: #32198A;
  --brand-900: #271664;
  --brand-950: #180E3F;
  --brand: #3f20af;
  --brand-ink: #ffffff;
}

Colors that work with #3f20af

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#5C4B9B
Captions on the surface
Accent#B0AB1C
Second voice, not a rival
Dark variant#27146C
Hover, pressed, headers
Light variant#EDE9FB
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 #3f20af

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#90AF20
Analogous left#2049AF
Analogous right#8720AF
Split-complement 1#AF8720
Split-complement 2#49AF20
Triadic 1#AF3F20
Triadic 2#20AF3F
Tetradic#AF2049

RGB percentages

Red24.7%
Green12.5%
Blue68.6%

CMYK percentages

Cyan64.0%
Magenta81.7%
Yellow0.0%
Key (black)31.4%

Color previews

#3f20af text on a black background

contrast 2.04:1

Card sample

#3f20af text on a white background

contrast 10.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #3f20af

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.

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

#3f20af, answered

What color is #3f20af?

#3f20af is a dark vivid blue, closest to Medium Blue (ΔE2000 5.2). It sits at 253° on the hue wheel with 69% saturation and 41% lightness, which reads as cool.

What is the RGB value of #3f20af?

rgb(63, 32, 175) — 63 red, 32 green and 175 blue out of 255, or 24.7% / 12.5% / 68.6% by channel.

Is #3f20af a light or a dark color?

It is a dark color. Relative luminance is 0.0518 and perceived brightness is 28%, so white text on it reaches 10.31:1.

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

White. It scores 10.31:1 against #3f20af, versus 2.04:1 for black — AAA at any size.

What is the complementary color of #3f20af?

#90AF20 sits directly opposite on the wheel. Softer options are the split-complements #AF8720 and #49AF20, which give the same contrast with far less vibration.

What colors go well with #3f20af?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5C4B9B for secondary text, #B0AB1C as an accent and #27146C for hover and pressed states. For a palette, the analogous pair #2049AF and #8720AF stays calm, while #90AF20 is the loudest partner.

What is #3f20af in CMYK for printing?

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

Is #3f20af warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7320AF; nudged cooler, #1E34B1.

Work with #3f20af in the Color Lab