Skip to content

#0818ce

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

RGB
8, 24, 206
HSL
235°, 93%, 42%
CMYK
96, 88, 0, 19
Luminance
0.0516

At a glance

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

Hex
#0818ce
Hue
235°
blue
Saturation
93%
electric
Lightness
42%
dark
Brightness
81%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0516
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.33:1
Closest name
Medium Blue
ΔE2000 2.2
Where it sits
Hue235° of 360°
Saturation93%
Lightness42%
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#0818ce
RGBrgb(8, 24, 206)
HSLhsl(235, 93%, 42%)
CMYKcmyk(96%, 88%, 0%, 19%)
LABlab(27.2 61.6 -88.4)
LCHlch(27.2 107.7 304.9)
OKLCHoklch(0.399 0.257 265.0)
Decimal530638
Display P3color(display-p3 0.031 0.094 0.808)

Copy-ready code

/* CSS */
color: #0818ce;
background-color: #0818ce;
/* Tailwind (arbitrary) */
class="text-[#0818ce] bg-[#0818ce]"
/* SCSS */
$brand: #0818ce;
/* SwiftUI */
Color(red: 0.031, green: 0.094, blue: 0.808)
/* Android */
Color.parseColor("#0818ce")
/* Flutter */
Color(0xFF0818CE)
/* Python / OpenCV (BGR) */
(206, 24, 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 #0818ce · 10.33:1
Use #ffffffAAA at every size.
Aa
White text · 10.33:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.03:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0818ce as text scores 10.33:1 on white and 2.03:1 on black.

Accessibility — WCAG contrast

Aa
#0818ce on white: 10.33:1
AA ✓ pass · AA-large · AAA
Aa
#0818ce on black: 2.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004AD3
deuteranopia · #0035CB
tritanopia · #00597A

Color scale — 50 to 950

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

#F2F3FD
#E4E6FB
#C3C7F9
#939BFB
#5D69F9
#2738F7
#091BEC
#0818ce
#06129D
#091171
#060B47
Base = 700Lightest = 50 · #F2F3FDDarkest = 950 · #060B47
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E4E6FB;
  --brand-200: #C3C7F9;
  --brand-300: #939BFB;
  --brand-400: #5D69F9;
  --brand-500: #2738F7;
  --brand-600: #091BEC;
  --brand-700: #0818ce;
  --brand-800: #06129D;
  --brand-900: #091171;
  --brand-950: #060B47;
  --brand: #0818ce;
  --brand-ink: #ffffff;
}

Colors that work with #0818ce

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#4B519B
Captions on the surface
Accent#C88704
Second voice, not a rival
Dark variant#050E7B
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 #0818ce

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#CEBE08
Analogous left#087BCE
Analogous right#5B08CE
Split-complement 1#CE5B08
Split-complement 2#7BCE08
Triadic 1#CE0818
Triadic 2#18CE08
Tetradic#CE087B

RGB percentages

Red3.1%
Green9.4%
Blue80.8%

CMYK percentages

Cyan96.1%
Magenta88.3%
Yellow0.0%
Key (black)19.2%

Color previews

#0818ce text on a black background

contrast 2.03:1

Card sample

#0818ce text on a white background

contrast 10.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0818ce;
Background color
Panel with #0818ce background
background-color: #0818ce;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0818ce;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(8, 24, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 24, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0818ce;
background: linear-gradient(135deg, #0818ce, #7C08CE);

Monochromatic scale

Palettes built from #0818ce

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.

#0818ce 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.

#0818ce, answered

What color is #0818ce?

#0818ce is a dark electric blue, closest to Medium Blue (ΔE2000 2.2). It sits at 235° on the hue wheel with 93% saturation and 42% lightness, which reads as cool.

What is the RGB value of #0818ce?

rgb(8, 24, 206) — 8 red, 24 green and 206 blue out of 255, or 3.1% / 9.4% / 80.8% by channel.

Is #0818ce a light or a dark color?

It is a dark color. Relative luminance is 0.0516 and perceived brightness is 28%, so white text on it reaches 10.33:1.

Should I use black or white text on #0818ce?

White. It scores 10.33:1 against #0818ce, versus 2.03:1 for black — AAA at any size.

What is the complementary color of #0818ce?

#CEBE08 sits directly opposite on the wheel. Softer options are the split-complements #CE5B08 and #7BCE08, which give the same contrast with far less vibration.

What colors go well with #0818ce?

For interface work: #F4F5FA as the surface, #C0C3ED for borders, #4B519B for secondary text, #C88704 as an accent and #050E7B for hover and pressed states. For a palette, the analogous pair #087BCE and #5B08CE stays calm, while #CEBE08 is the loudest partner.

What is #0818ce in CMYK for printing?

cmyk(96%, 88%, 0%, 19%). 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 #0818ce 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 #4108CE; nudged cooler, #063DD0.

Work with #0818ce in the Color Lab