Skip to content

#0817eb

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

RGB
8, 23, 235
HSL
236°, 93%, 48%
CMYK
97, 90, 0, 8
Luminance
0.0666

At a glance

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

Hex
#0817eb
Hue
236°
blue
Saturation
93%
electric
Lightness
48%
balanced
Brightness
92%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0666
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.00:1
Closest name
Blue
ΔE2000 2.2
Where it sits
Hue236° of 360°
Saturation93%
Lightness48%
Temperature
Warm ← → Cool86% 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#0817eb
RGBrgb(8, 23, 235)
HSLhsl(236, 93%, 48%)
CMYKcmyk(97%, 90%, 0%, 8%)
LABlab(31.0 69.9 -98.7)
LCHlch(31.0 120.9 305.3)
OKLCHoklch(0.436 0.287 264.8)
Decimal530411
Display P3color(display-p3 0.031 0.090 0.922)

Copy-ready code

/* CSS */
color: #0817eb;
background-color: #0817eb;
/* Tailwind (arbitrary) */
class="text-[#0817eb] bg-[#0817eb]"
/* SCSS */
$brand: #0817eb;
/* SwiftUI */
Color(red: 0.031, green: 0.090, blue: 0.922)
/* Android */
Color.parseColor("#0817eb")
/* Flutter */
Color(0xFF0817EB)
/* Python / OpenCV (BGR) */
(235, 23, 8)

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

Accessibility — WCAG contrast

Aa
#0817eb on white: 9.00:1
AA ✓ pass · AA-large · AAA
Aa
#0817eb on black: 2.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0054F0
deuteranopia · #003CE8
tritanopia · #00658B

Color scale — 50 to 950

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

#F2F2FD
#E4E6FB
#C2C6F9
#9399FB
#5C67F9
#2634F8
#0817eb
#0713C5
#05109E
#091072
#050A47
Base = 600Lightest = 50 · #F2F2FDDarkest = 950 · #050A47
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E4E6FB;
  --brand-200: #C2C6F9;
  --brand-300: #9399FB;
  --brand-400: #5C67F9;
  --brand-500: #2634F8;
  --brand-600: #0817eb;
  --brand-700: #0713C5;
  --brand-800: #05109E;
  --brand-900: #091072;
  --brand-950: #050A47;
  --brand: #0817eb;
  --brand-ink: #ffffff;
}

Colors that work with #0817eb

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#F4F5FA
Tinted page background
Border#C0C3ED
Hairlines and dividers
Muted text#4B509B
Captions on the surface
Accent#C98A03
Second voice, not a rival
Dark variant#040C7B
Hover, pressed, headers
Light variant#E6E8FE
Selected rows, tints
Dark surface#141524
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 #0817eb

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#EBDC08
Analogous left#0888EB
Analogous right#6A08EB
Split-complement 1#EB6A08
Split-complement 2#88EB08
Triadic 1#EB0817
Triadic 2#17EB08
Tetradic#EB0888

RGB percentages

Red3.1%
Green9.0%
Blue92.2%

CMYK percentages

Cyan96.6%
Magenta90.2%
Yellow0.0%
Key (black)7.8%

Color previews

#0817eb text on a black background

contrast 2.33:1

Card sample

#0817eb text on a white background

contrast 9.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(8, 23, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 23, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0817eb;
background: linear-gradient(135deg, #0817eb, #9008EB);

Monochromatic scale

Palettes built from #0817eb

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.

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

#0817eb, answered

What color is #0817eb?

#0817eb is a balanced electric blue, closest to Blue (ΔE2000 2.2). It sits at 236° on the hue wheel with 93% saturation and 48% lightness, which reads as cool.

What is the RGB value of #0817eb?

rgb(8, 23, 235) — 8 red, 23 green and 235 blue out of 255, or 3.1% / 9% / 92.2% by channel.

Is #0817eb a light or a dark color?

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

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

White. It scores 9.00:1 against #0817eb, versus 2.33:1 for black — AAA at any size.

What is the complementary color of #0817eb?

#EBDC08 sits directly opposite on the wheel. Softer options are the split-complements #EB6A08 and #88EB08, which give the same contrast with far less vibration.

What colors go well with #0817eb?

For interface work: #F4F5FA as the surface, #C0C3ED for borders, #4B509B for secondary text, #C98A03 as an accent and #040C7B for hover and pressed states. For a palette, the analogous pair #0888EB and #6A08EB stays calm, while #EBDC08 is the loudest partner.

What is #0817eb in CMYK for printing?

cmyk(97%, 90%, 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 #0817eb warm or cool?

Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4C08EB; nudged cooler, #0640ED.

Work with #0817eb in the Color Lab