Skip to content

#0102eb

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

RGB
1, 2, 235
HSL
240°, 99%, 46%
CMYK
100, 99, 0, 8
Luminance
0.0605

At a glance

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

Hex
#0102eb
Hue
240°
blue
Saturation
99%
electric
Lightness
46%
balanced
Brightness
92%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0605
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.50:1
Closest name
Blue
ΔE2000 2.5
Where it sits
Hue240° of 360°
Saturation99%
Lightness46%
Temperature
Warm ← → Cool83% 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#0102eb
RGBrgb(1, 2, 235)
HSLhsl(240, 99%, 46%)
CMYKcmyk(100%, 99%, 0%, 8%)
LABlab(29.5 74.1 -101.2)
LCHlch(29.5 125.4 306.2)
OKLCHoklch(0.426 0.294 264.1)
Decimal66283
Display P3color(display-p3 0.004 0.008 0.922)

Copy-ready code

/* CSS */
color: #0102eb;
background-color: #0102eb;
/* Tailwind (arbitrary) */
class="text-[#0102eb] bg-[#0102eb]"
/* SCSS */
$brand: #0102eb;
/* SwiftUI */
Color(red: 0.004, green: 0.008, blue: 0.922)
/* Android */
Color.parseColor("#0102eb")
/* Flutter */
Color(0xFF0102EB)
/* Python / OpenCV (BGR) */
(235, 2, 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 #0102eb · 9.50:1
Use #ffffffAAA at every size.
Aa
White text · 9.50:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.21:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0102eb as text scores 9.50:1 on white and 2.21:1 on black.

Accessibility — WCAG contrast

Aa
#0102eb on white: 9.50:1
AA ✓ pass · AA-large · AAA
Aa
#0102eb on black: 2.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0051F0
deuteranopia · #0038E8
tritanopia · #00628A

Color scale — 50 to 950

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

#F1F1FE
#E3E3FC
#C0C1FB
#8F90FF
#5758FE
#1F21FE
#0102eb
#0102CB
#0101A3
#050675
#030449
Base = 600Lightest = 50 · #F1F1FEDarkest = 950 · #030449
:root {
  --brand-50: #F1F1FE;
  --brand-100: #E3E3FC;
  --brand-200: #C0C1FB;
  --brand-300: #8F90FF;
  --brand-400: #5758FE;
  --brand-500: #1F21FE;
  --brand-600: #0102eb;
  --brand-700: #0102CB;
  --brand-800: #0101A3;
  --brand-900: #050675;
  --brand-950: #030449;
  --brand: #0102eb;
  --brand-ink: #ffffff;
}

Colors that work with #0102eb

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#4B4B9B
Captions on the surface
Accent#CC9800
Second voice, not a rival
Dark variant#01017F
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 #0102eb

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
  • Text on black or near-black surfaces
  • 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#EBEA01
Analogous left#0177EB
Analogous right#7501EB
Split-complement 1#EB7501
Split-complement 2#77EB01
Triadic 1#EB0102
Triadic 2#02EB01
Tetradic#EB0177

RGB percentages

Red0.4%
Green0.8%
Blue92.2%

CMYK percentages

Cyan99.6%
Magenta99.1%
Yellow0.0%
Key (black)7.8%

Color previews

#0102eb text on a black background

contrast 2.21:1

Card sample

#0102eb text on a white background

contrast 9.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0102eb;
Background color
Panel with #0102eb background
background-color: #0102eb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0102eb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(1, 2, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(1, 2, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0102eb;
background: linear-gradient(135deg, #0102eb, #9C01EB);

Monochromatic scale

Palettes built from #0102eb

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.

#0102eb 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.

#0102eb, answered

What color is #0102eb?

#0102eb is a balanced electric blue, closest to Blue (ΔE2000 2.5). It sits at 240° on the hue wheel with 99% saturation and 46% lightness, which reads as cool.

What is the RGB value of #0102eb?

rgb(1, 2, 235) — 1 red, 2 green and 235 blue out of 255, or 0.4% / 0.8% / 92.2% by channel.

Is #0102eb a light or a dark color?

It is a dark color. Relative luminance is 0.0605 and perceived brightness is 31%, so white text on it reaches 9.50:1.

Should I use black or white text on #0102eb?

White. It scores 9.50:1 against #0102eb, versus 2.21:1 for black — AAA at any size.

What is the complementary color of #0102eb?

#EBEA01 sits directly opposite on the wheel. Softer options are the split-complements #EB7501 and #77EB01, which give the same contrast with far less vibration.

What colors go well with #0102eb?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #CC9800 as an accent and #01017F for hover and pressed states. For a palette, the analogous pair #0177EB and #7501EB stays calm, while #EBEA01 is the loudest partner.

What is #0102eb in CMYK for printing?

cmyk(100%, 99%, 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 #0102eb warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5601EB; nudged cooler, #0033EC.

Work with #0102eb in the Color Lab