Skip to content

#8398ee

a light, electric blue · cool · closest name: Cornflower Blue

RGB
131, 152, 238
HSL
228°, 76%, 72%
CMYK
45, 36, 0, 7
Luminance
0.3345

At a glance

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

Hex
#8398ee
Hue
228°
blue
Saturation
76%
electric
Lightness
72%
light
Brightness
93%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3345
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.69:1
Closest name
Cornflower Blue
ΔE2000 5.8
Where it sits
Hue228° of 360°
Saturation76%
Lightness72%
Temperature
Warm ← → Cool90% 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#8398ee
RGBrgb(131, 152, 238)
HSLhsl(228, 76%, 72%)
CMYKcmyk(45%, 36%, 0%, 7%)
LABlab(64.5 14.7 -45.6)
LCHlch(64.5 48.0 287.9)
OKLCHoklch(0.700 0.129 272.3)
Decimal8624366
Display P3color(display-p3 0.514 0.596 0.933)

Copy-ready code

/* CSS */
color: #8398ee;
background-color: #8398ee;
/* Tailwind (arbitrary) */
class="text-[#8398ee] bg-[#8398ee]"
/* SCSS */
$brand: #8398ee;
/* SwiftUI */
Color(red: 0.514, green: 0.596, blue: 0.933)
/* Android */
Color.parseColor("#8398ee")
/* Flutter */
Color(0xFF8398EE)
/* Python / OpenCV (BGR) */
(238, 152, 131)

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#000000 on #8398ee · 7.69:1
Use #000000AAA at every size.
Aa
White text · 2.73:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.69:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #8398ee as text scores 2.73:1 on white and 7.69:1 on black.

Accessibility — WCAG contrast

Aa
#8398ee on white: 2.73:1
AA ✗ fail · AA-large · AAA
Aa
#8398ee on black: 7.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #79A1F1
deuteranopia · #6F98EC
tritanopia · #5CAAB8

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #8398ee is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F3F5FC
#E7EAF9
#C8D0F4
#9CADF1
#8398ee
#3A5BE4
#1D42D7
#1937B3
#142C90
#122368
#0C1641
Base = 400Lightest = 50 · #F3F5FCDarkest = 950 · #0C1641
:root {
  --brand-50: #F3F5FC;
  --brand-100: #E7EAF9;
  --brand-200: #C8D0F4;
  --brand-300: #9CADF1;
  --brand-400: #8398ee;
  --brand-500: #3A5BE4;
  --brand-600: #1D42D7;
  --brand-700: #1937B3;
  --brand-800: #142C90;
  --brand-900: #122368;
  --brand-950: #0C1641;
  --brand: #8398ee;
  --brand-ink: #000000;
}

Colors that work with #8398ee

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4F5FA
Tinted page background
Border#C0C9ED
Hairlines and dividers
Muted text#4B5A9B
Captions on the surface
Accent#B87014
Second voice, not a rival
Dark variant#0F2270
Hover, pressed, headers
Light variant#E9ECFC
Selected rows, tints
Dark surface#141724
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 #8398ee

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White 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#EED983
Analogous left#83CEEE
Analogous right#A483EE
Split-complement 1#EEA483
Split-complement 2#CEEE83
Triadic 1#EE8398
Triadic 2#98EE83
Tetradic#EE83CE

RGB percentages

Red51.4%
Green59.6%
Blue93.3%

CMYK percentages

Cyan45.0%
Magenta36.1%
Yellow0.0%
Key (black)6.7%

Color previews

#8398ee text on a black background

contrast 7.69:1

Card sample

#8398ee text on a white background

contrast 2.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8398ee;
Background color
Panel with #8398ee background
background-color: #8398ee;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #8398ee;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(131, 152, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(131, 152, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8398ee;
background: linear-gradient(135deg, #8398ee, #B583EE);

Monochromatic scale

Palettes built from #8398ee

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.

#8398ee 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
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#8398ee, answered

What color is #8398ee?

#8398ee is a light electric blue, closest to Cornflower Blue (ΔE2000 5.8). It sits at 228° on the hue wheel with 76% saturation and 72% lightness, which reads as cool.

What is the RGB value of #8398ee?

rgb(131, 152, 238) — 131 red, 152 green and 238 blue out of 255, or 51.4% / 59.6% / 93.3% by channel.

Is #8398ee a light or a dark color?

It is a mid-tone. Relative luminance is 0.3345 and perceived brightness is 62%, so black text on it reaches 7.69:1.

Should I use black or white text on #8398ee?

Black. It scores 7.69:1 against #8398ee, versus 2.73:1 for white — AAA at any size.

What is the complementary color of #8398ee?

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

What colors go well with #8398ee?

For interface work: #F4F5FA as the surface, #C0C9ED for borders, #4B5A9B for secondary text, #B87014 as an accent and #0F2270 for hover and pressed states. For a palette, the analogous pair #83CEEE and #A483EE stays calm, while #EED983 is the loudest partner.

What is #8398ee in CMYK for printing?

cmyk(45%, 36%, 0%, 7%). 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 #8398ee warm or cool?

Cool — it scores 90 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9583EE; nudged cooler, #82ABEF.

Work with #8398ee in the Color Lab