Skip to content

#0104df

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

RGB
1, 4, 223
HSL
239°, 99%, 44%
CMYK
100, 98, 0, 13
Luminance
0.0542

At a glance

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

Hex
#0104df
Hue
239°
blue
Saturation
99%
electric
Lightness
44%
dark
Brightness
87%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0542
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.08:1
Closest name
Medium Blue
ΔE2000 2.4
Where it sits
Hue239° of 360°
Saturation99%
Lightness44%
Temperature
Warm ← → Cool84% 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#0104df
RGBrgb(1, 4, 223)
HSLhsl(239, 99%, 44%)
CMYKcmyk(100%, 98%, 0%, 13%)
LABlab(27.9 70.8 -97.0)
LCHlch(27.9 120.1 306.1)
OKLCHoklch(0.410 0.282 264.2)
Decimal66783
Display P3color(display-p3 0.004 0.016 0.875)

Copy-ready code

/* CSS */
color: #0104df;
background-color: #0104df;
/* Tailwind (arbitrary) */
class="text-[#0104df] bg-[#0104df]"
/* SCSS */
$brand: #0104df;
/* SwiftUI */
Color(red: 0.004, green: 0.016, blue: 0.875)
/* Android */
Color.parseColor("#0104df")
/* Flutter */
Color(0xFF0104DF)
/* Python / OpenCV (BGR) */
(223, 4, 1)

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

Accessibility — WCAG contrast

Aa
#0104df on white: 10.08:1
AA ✓ pass · AA-large · AAA
Aa
#0104df on black: 2.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004DE4
deuteranopia · #0035DC
tritanopia · #005D82

Color scale — 50 to 950

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

#F1F1FE
#E3E4FC
#C0C1FB
#8F91FE
#575AFE
#2023FE
#0104F4
#0104df
#0103A2
#050775
#030449
Base = 700Lightest = 50 · #F1F1FEDarkest = 950 · #030449
:root {
  --brand-50: #F1F1FE;
  --brand-100: #E3E4FC;
  --brand-200: #C0C1FB;
  --brand-300: #8F91FE;
  --brand-400: #575AFE;
  --brand-500: #2023FE;
  --brand-600: #0104F4;
  --brand-700: #0104df;
  --brand-800: #0103A2;
  --brand-900: #050775;
  --brand-950: #030449;
  --brand: #0104df;
  --brand-ink: #ffffff;
}

Colors that work with #0104df

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#F4F4FA
Tinted page background
Border#C0C0ED
Hairlines and dividers
Muted text#4B4C9B
Captions on the surface
Accent#CC9600
Second voice, not a rival
Dark variant#01027F
Hover, pressed, headers
Light variant#E6E6FF
Selected rows, tints
Dark surface#141424
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 #0104df

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#DFDC01
Analogous left#0173DF
Analogous right#6D01DF
Split-complement 1#DF6D01
Split-complement 2#73DF01
Triadic 1#DF0104
Triadic 2#04DF01
Tetradic#DF0173

RGB percentages

Red0.4%
Green1.6%
Blue87.5%

CMYK percentages

Cyan99.6%
Magenta98.2%
Yellow0.0%
Key (black)12.5%

Color previews

#0104df text on a black background

contrast 2.08:1

Card sample

#0104df text on a white background

contrast 10.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0104df

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.

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

#0104df, answered

What color is #0104df?

#0104df is a dark electric blue, closest to Medium Blue (ΔE2000 2.4). It sits at 239° on the hue wheel with 99% saturation and 44% lightness, which reads as cool.

What is the RGB value of #0104df?

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

Is #0104df a light or a dark color?

It is a dark color. Relative luminance is 0.0542 and perceived brightness is 30%, so white text on it reaches 10.08:1.

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

White. It scores 10.08:1 against #0104df, versus 2.08:1 for black — AAA at any size.

What is the complementary color of #0104df?

#DFDC01 sits directly opposite on the wheel. Softer options are the split-complements #DF6D01 and #73DF01, which give the same contrast with far less vibration.

What colors go well with #0104df?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4C9B for secondary text, #CC9600 as an accent and #01027F for hover and pressed states. For a palette, the analogous pair #0173DF and #6D01DF stays calm, while #DFDC01 is the loudest partner.

What is #0104df in CMYK for printing?

cmyk(100%, 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 #0104df warm or cool?

Cool — it scores 84 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4F01DF; nudged cooler, #0033E0.

Work with #0104df in the Color Lab