Skip to content

#104fec

a balanced, electric blue · cool · closest name: Royal Blue

RGB
16, 79, 236
HSL
223°, 87%, 49%
CMYK
93, 67, 0, 8
Luminance
0.1176

At a glance

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

Hex
#104fec
Hue
223°
blue
Saturation
87%
electric
Lightness
49%
balanced
Brightness
93%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1176
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.27:1
Closest name
Royal Blue
ΔE2000 8.2
Where it sits
Hue223° of 360°
Saturation87%
Lightness49%
Temperature
Warm ← → Cool93% 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#104fec
RGBrgb(16, 79, 236)
HSLhsl(223, 87%, 49%)
CMYKcmyk(93%, 67%, 0%, 8%)
LABlab(40.8 43.0 -83.0)
LCHlch(40.8 93.5 297.4)
OKLCHoklch(0.506 0.242 263.5)
Decimal1069036
Display P3color(display-p3 0.063 0.310 0.925)

Copy-ready code

/* CSS */
color: #104fec;
background-color: #104fec;
/* Tailwind (arbitrary) */
class="text-[#104fec] bg-[#104fec]"
/* SCSS */
$brand: #104fec;
/* SwiftUI */
Color(red: 0.063, green: 0.310, blue: 0.925)
/* Android */
Color.parseColor("#104fec")
/* Flutter */
Color(0xFF104FEC)
/* Python / OpenCV (BGR) */
(236, 79, 16)

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 #104fec · 6.27:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.27:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.35:1
AA fail · AA large pass · AAA fail
Reading the other direction: #104fec as text scores 6.27:1 on white and 3.35:1 on black.

Accessibility — WCAG contrast

Aa
#104fec on white: 6.27:1
AA ✓ pass · AA-large · AAA
Aa
#104fec on black: 3.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006AF1
deuteranopia · #0056E9
tritanopia · #007A97

Color scale — 50 to 950

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

#F2F5FD
#E5EBFA
#C4D3F7
#96B2F8
#618CF4
#2D65F1
#104fec
#0D40BF
#0A3399
#0C286E
#081945
Base = 600Lightest = 50 · #F2F5FDDarkest = 950 · #081945
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5EBFA;
  --brand-200: #C4D3F7;
  --brand-300: #96B2F8;
  --brand-400: #618CF4;
  --brand-500: #2D65F1;
  --brand-600: #104fec;
  --brand-700: #0D40BF;
  --brand-800: #0A3399;
  --brand-900: #0C286E;
  --brand-950: #081945;
  --brand: #104fec;
  --brand-ink: #ffffff;
}

Colors that work with #104fec

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#F4F6FA
Tinted page background
Border#C0CDED
Hairlines and dividers
Muted text#4B629B
Captions on the surface
Accent#C35F09
Second voice, not a rival
Dark variant#082877
Hover, pressed, headers
Light variant#E7EEFD
Selected rows, tints
Dark surface#141824
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 #104fec

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#ECAD10
Analogous left#10BDEC
Analogous right#3F10EC
Split-complement 1#EC3F10
Split-complement 2#BDEC10
Triadic 1#EC104F
Triadic 2#4FEC10
Tetradic#EC10BD

RGB percentages

Red6.3%
Green31.0%
Blue92.5%

CMYK percentages

Cyan93.2%
Magenta66.5%
Yellow0.0%
Key (black)7.5%

Color previews

#104fec text on a black background

contrast 3.35:1

Card sample

#104fec text on a white background

contrast 6.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #104fec;
Background color
Panel with #104fec background
background-color: #104fec;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #104fec;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(16, 79, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(16, 79, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #104fec;
background: linear-gradient(135deg, #104fec, #6410EC);

Monochromatic scale

Palettes built from #104fec

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.

#104fec 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.

#104fec, answered

What color is #104fec?

#104fec is a balanced electric blue, closest to Royal Blue (ΔE2000 8.2). It sits at 223° on the hue wheel with 87% saturation and 49% lightness, which reads as cool.

What is the RGB value of #104fec?

rgb(16, 79, 236) — 16 red, 79 green and 236 blue out of 255, or 6.3% / 31% / 92.5% by channel.

Is #104fec a light or a dark color?

It is a dark color. Relative luminance is 0.1176 and perceived brightness is 39%, so white text on it reaches 6.27:1.

Should I use black or white text on #104fec?

White. It scores 6.27:1 against #104fec, versus 3.35:1 for black — AA at any size.

What is the complementary color of #104fec?

#ECAD10 sits directly opposite on the wheel. Softer options are the split-complements #EC3F10 and #BDEC10, which give the same contrast with far less vibration.

What colors go well with #104fec?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B629B for secondary text, #C35F09 as an accent and #082877 for hover and pressed states. For a palette, the analogous pair #10BDEC and #3F10EC stays calm, while #ECAD10 is the loudest partner.

What is #104fec in CMYK for printing?

cmyk(93%, 67%, 0%, 8%). 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 #104fec warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2210EC; nudged cooler, #0C58D6.

Work with #104fec in the Color Lab