Skip to content

#3904df

a dark, electric blue · cool · closest name: Blue

RGB
57, 4, 223
HSL
255°, 97%, 45%
CMYK
74, 98, 0, 13
Luminance
0.0628

At a glance

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

Hex
#3904df
Hue
255°
blue
Saturation
97%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0628
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.30:1
Closest name
Blue
ΔE2000 3.4
Where it sits
Hue255° of 360°
Saturation97%
Lightness45%
Temperature
Warm ← → Cool75% 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#3904df
RGBrgb(57, 4, 223)
HSLhsl(255, 97%, 45%)
CMYKcmyk(74%, 98%, 0%, 13%)
LABlab(30.1 71.7 -93.3)
LCHlch(30.1 117.7 307.5)
OKLCHoklch(0.431 0.270 274.5)
Decimal3736799
Display P3color(display-p3 0.224 0.016 0.875)

Copy-ready code

/* CSS */
color: #3904df;
background-color: #3904df;
/* Tailwind (arbitrary) */
class="text-[#3904df] bg-[#3904df]"
/* SCSS */
$brand: #3904df;
/* SwiftUI */
Color(red: 0.224, green: 0.016, blue: 0.875)
/* Android */
Color.parseColor("#3904df")
/* Flutter */
Color(0xFF3904DF)
/* Python / OpenCV (BGR) */
(223, 4, 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 #3904df · 9.30:1
Use #ffffffAAA at every size.
Aa
White text · 9.30:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.26:1
AA fail · AA large fail · AAA fail
Reading the other direction: #3904df as text scores 9.30:1 on white and 2.26:1 on black.

Accessibility — WCAG contrast

Aa
#3904df on white: 9.30:1
AA ✓ pass · AA-large · AAA
Aa
#3904df on black: 2.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004FE4
deuteranopia · #003DDC
tritanopia · #005C83

Color scale — 50 to 950

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

#F4F1FD
#E9E4FC
#CFC1FB
#AB91FD
#815AFC
#5723FB
#3904df
#3304C8
#2903A0
#210774
#150448
Base = 600Lightest = 50 · #F4F1FDDarkest = 950 · #150448
:root {
  --brand-50: #F4F1FD;
  --brand-100: #E9E4FC;
  --brand-200: #CFC1FB;
  --brand-300: #AB91FD;
  --brand-400: #815AFC;
  --brand-500: #5723FB;
  --brand-600: #3904df;
  --brand-700: #3304C8;
  --brand-800: #2903A0;
  --brand-900: #210774;
  --brand-950: #150448;
  --brand: #3904df;
  --brand-ink: #ffffff;
}

Colors that work with #3904df

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#CBC0ED
Hairlines and dividers
Muted text#5E4B9B
Captions on the surface
Accent#CCCA00
Second voice, not a rival
Dark variant#20027D
Hover, pressed, headers
Light variant#ECE6FF
Selected rows, tints
Dark surface#181424
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 #3904df

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#AADF04
Analogous left#043DDF
Analogous right#A604DF
Split-complement 1#DFA604
Split-complement 2#3DDF04
Triadic 1#DF3904
Triadic 2#04DF39
Tetradic#DF043D

RGB percentages

Red22.4%
Green1.6%
Blue87.5%

CMYK percentages

Cyan74.4%
Magenta98.2%
Yellow0.0%
Key (black)12.5%

Color previews

#3904df text on a black background

contrast 2.26:1

Card sample

#3904df text on a white background

contrast 9.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3904df;
Background color
Panel with #3904df background
background-color: #3904df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #3904df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(57, 4, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(57, 4, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3904df;
background: linear-gradient(135deg, #3904df, #CB04DF);

Monochromatic scale

Palettes built from #3904df

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.

#3904df 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.

#3904df, answered

What color is #3904df?

#3904df is a dark electric blue, closest to Blue (ΔE2000 3.4). It sits at 255° on the hue wheel with 97% saturation and 45% lightness, which reads as cool.

What is the RGB value of #3904df?

rgb(57, 4, 223) — 57 red, 4 green and 223 blue out of 255, or 22.4% / 1.6% / 87.5% by channel.

Is #3904df a light or a dark color?

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

Should I use black or white text on #3904df?

White. It scores 9.30:1 against #3904df, versus 2.26:1 for black — AAA at any size.

What is the complementary color of #3904df?

#AADF04 sits directly opposite on the wheel. Softer options are the split-complements #DFA604 and #3DDF04, which give the same contrast with far less vibration.

What colors go well with #3904df?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5E4B9B for secondary text, #CCCA00 as an accent and #20027D for hover and pressed states. For a palette, the analogous pair #043DDF and #A604DF stays calm, while #AADF04 is the loudest partner.

What is #3904df in CMYK for printing?

cmyk(74%, 98%, 0%, 13%). 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 #3904df warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8904DF; nudged cooler, #021AE1.

Work with #3904df in the Color Lab