Skip to content

#3908af

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

RGB
57, 8, 175
HSL
258°, 91%, 36%
CMYK
67, 95, 0, 31
Luminance
0.0414

At a glance

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

Hex
#3908af
Hue
258°
violet
Saturation
91%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
26%
weighted brightness
Luminance
0.0414
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
White
11.49:1
Closest name
Medium Blue
ΔE2000 4
Where it sits
Hue258° of 360°
Saturation91%
Lightness36%
Temperature
Warm ← → Cool74% 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#3908af
RGBrgb(57, 8, 175)
HSLhsl(258, 91%, 36%)
CMYKcmyk(67%, 95%, 0%, 31%)
LABlab(24.1 59.2 -75.1)
LCHlch(24.1 95.6 308.2)
OKLCHoklch(0.374 0.220 280.3)
Decimal3737775
Display P3color(display-p3 0.224 0.031 0.686)

Copy-ready code

/* CSS */
color: #3908af;
background-color: #3908af;
/* Tailwind (arbitrary) */
class="text-[#3908af] bg-[#3908af]"
/* SCSS */
$brand: #3908af;
/* SwiftUI */
Color(red: 0.224, green: 0.031, blue: 0.686)
/* Android */
Color.parseColor("#3908af")
/* Flutter */
Color(0xFF3908AF)
/* Python / OpenCV (BGR) */
(175, 8, 57)

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 #3908af · 11.49:1
Use #ffffffAAA at every size.
Aa
White text · 11.49:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.83:1
AA fail · AA large fail · AAA fail
Reading the other direction: #3908af as text scores 11.49:1 on white and 1.83:1 on black.

Accessibility — WCAG contrast

Aa
#3908af on white: 11.49:1
AA ✓ pass · AA-large · AAA
Aa
#3908af on black: 1.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003FB3
deuteranopia · #0033AC
tritanopia · #004766

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #3908af 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
#EBE4FB
#D3C3F9
#B294FA
#8B5EF8
#6428F5
#4C0BEA
#4009C3
#3908af
#280A71
#190646
Base = 800Lightest = 50 · #F5F2FDDarkest = 950 · #190646
:root {
  --brand-50: #F5F2FD;
  --brand-100: #EBE4FB;
  --brand-200: #D3C3F9;
  --brand-300: #B294FA;
  --brand-400: #8B5EF8;
  --brand-500: #6428F5;
  --brand-600: #4C0BEA;
  --brand-700: #4009C3;
  --brand-800: #3908af;
  --brand-900: #280A71;
  --brand-950: #190646;
  --brand: #3908af;
  --brand-ink: #ffffff;
}

Colors that work with #3908af

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#CDC0ED
Hairlines and dividers
Muted text#624B9B
Captions on the surface
Accent#BFC804
Second voice, not a rival
Dark variant#28067A
Hover, pressed, headers
Light variant#EDE7FE
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 #3908af

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#7EAF08
Analogous left#082BAF
Analogous right#8D08AF
Split-complement 1#AF8D08
Split-complement 2#2BAF08
Triadic 1#AF3908
Triadic 2#08AF39
Tetradic#AF082B

RGB percentages

Red22.4%
Green3.1%
Blue68.6%

CMYK percentages

Cyan67.4%
Magenta95.4%
Yellow0.0%
Key (black)31.4%

Color previews

#3908af text on a black background

contrast 1.83:1

Card sample

#3908af text on a white background

contrast 11.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3908af;
Background color
Panel with #3908af background
background-color: #3908af;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #3908af;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #3908af

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.

#3908af 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.

#3908af, answered

What color is #3908af?

#3908af is a dark electric violet, closest to Medium Blue (ΔE2000 4). It sits at 258° on the hue wheel with 91% saturation and 36% lightness, which reads as cool.

What is the RGB value of #3908af?

rgb(57, 8, 175) — 57 red, 8 green and 175 blue out of 255, or 22.4% / 3.1% / 68.6% by channel.

Is #3908af a light or a dark color?

It is a dark color. Relative luminance is 0.0414 and perceived brightness is 26%, so white text on it reaches 11.49:1.

Should I use black or white text on #3908af?

White. It scores 11.49:1 against #3908af, versus 1.83:1 for black — AAA at any size.

What is the complementary color of #3908af?

#7EAF08 sits directly opposite on the wheel. Softer options are the split-complements #AF8D08 and #2BAF08, which give the same contrast with far less vibration.

What colors go well with #3908af?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #624B9B for secondary text, #BFC804 as an accent and #28067A for hover and pressed states. For a palette, the analogous pair #082BAF and #8D08AF stays calm, while #7EAF08 is the loudest partner.

What is #3908af in CMYK for printing?

cmyk(67%, 95%, 0%, 31%). 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 #3908af warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7608AF; nudged cooler, #0613B1.

Work with #3908af in the Color Lab