Skip to content

#818ce7

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

RGB
129, 140, 231
HSL
234°, 68%, 71%
CMYK
44, 39, 0, 9
Luminance
0.2919

At a glance

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

Hex
#818ce7
Hue
234°
blue
Saturation
68%
vivid
Lightness
71%
light
Brightness
91%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2919
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
6.84:1
Closest name
Cornflower Blue
ΔE2000 7.6
Where it sits
Hue234° of 360°
Saturation68%
Lightness71%
Temperature
Warm ← → Cool87% 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#818ce7
RGBrgb(129, 140, 231)
HSLhsl(234, 68%, 71%)
CMYKcmyk(44%, 39%, 0%, 9%)
LABlab(61.0 19.2 -47.4)
LCHlch(61.0 51.1 292.1)
OKLCHoklch(0.671 0.135 276.9)
Decimal8490215
Display P3color(display-p3 0.506 0.549 0.906)

Copy-ready code

/* CSS */
color: #818ce7;
background-color: #818ce7;
/* Tailwind (arbitrary) */
class="text-[#818ce7] bg-[#818ce7]"
/* SCSS */
$brand: #818ce7;
/* SwiftUI */
Color(red: 0.506, green: 0.549, blue: 0.906)
/* Android */
Color.parseColor("#818ce7")
/* Flutter */
Color(0xFF818CE7)
/* Python / OpenCV (BGR) */
(231, 140, 129)

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

Accessibility — WCAG contrast

Aa
#818ce7 on white: 3.07:1
AA ✗ fail · AA-large · AAA
Aa
#818ce7 on black: 6.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6B97EB
deuteranopia · #638FE5
tritanopia · #5E9FAE

Color scale — 50 to 950

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

#F3F4FB
#E8E9F8
#CACEF2
#A1A9ED
#818ce7
#4353DB
#2739CE
#2130AB
#1A2689
#171F63
#0E143E
Base = 400Lightest = 50 · #F3F4FBDarkest = 950 · #0E143E
:root {
  --brand-50: #F3F4FB;
  --brand-100: #E8E9F8;
  --brand-200: #CACEF2;
  --brand-300: #A1A9ED;
  --brand-400: #818ce7;
  --brand-500: #4353DB;
  --brand-600: #2739CE;
  --brand-700: #2130AB;
  --brand-800: #1A2689;
  --brand-900: #171F63;
  --brand-950: #0E143E;
  --brand: #818ce7;
  --brand-ink: #000000;
}

Colors that work with #818ce7

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#C0C5ED
Hairlines and dividers
Muted text#4B539B
Captions on the surface
Accent#AF7A1D
Second voice, not a rival
Dark variant#141E6B
Hover, pressed, headers
Light variant#EAEBFB
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 #818ce7

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

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#E7DC81
Analogous left#81BFE7
Analogous right#A981E7
Split-complement 1#E7A981
Split-complement 2#BFE781
Triadic 1#E7818C
Triadic 2#8CE781
Tetradic#E781BF

RGB percentages

Red50.6%
Green54.9%
Blue90.6%

CMYK percentages

Cyan44.2%
Magenta39.4%
Yellow0.0%
Key (black)9.4%

Color previews

#818ce7 text on a black background

contrast 6.84:1

Card sample

#818ce7 text on a white background

contrast 3.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #818ce7;
Background color
Panel with #818ce7 background
background-color: #818ce7;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #818ce7;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(129, 140, 231, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(129, 140, 231, 0.45);
Border & gradient
Gradient panel
border: 3px solid #818ce7;
background: linear-gradient(135deg, #818ce7, #BA81E7);

Monochromatic scale

Palettes built from #818ce7

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.

#818ce7 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

Converts to four-color process without much drama. Proof it anyway.

#818ce7, answered

What color is #818ce7?

#818ce7 is a light vivid blue, closest to Cornflower Blue (ΔE2000 7.6). It sits at 234° on the hue wheel with 68% saturation and 71% lightness, which reads as cool.

What is the RGB value of #818ce7?

rgb(129, 140, 231) — 129 red, 140 green and 231 blue out of 255, or 50.6% / 54.9% / 90.6% by channel.

Is #818ce7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2919 and perceived brightness is 59%, so black text on it reaches 6.84:1.

Should I use black or white text on #818ce7?

Black. It scores 6.84:1 against #818ce7, versus 3.07:1 for white — AA at any size.

What is the complementary color of #818ce7?

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

What colors go well with #818ce7?

For interface work: #F4F5FA as the surface, #C0C5ED for borders, #4B539B for secondary text, #AF7A1D as an accent and #141E6B for hover and pressed states. For a palette, the analogous pair #81BFE7 and #A981E7 stays calm, while #E7DC81 is the loudest partner.

What is #818ce7 in CMYK for printing?

cmyk(44%, 39%, 0%, 9%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #818ce7 warm or cool?

Cool — it scores 87 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9B81E7; nudged cooler, #80A4E9.

Work with #818ce7 in the Color Lab