Skip to content

#798cec

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

RGB
121, 140, 236
HSL
230°, 75%, 70%
CMYK
49, 41, 0, 8
Luminance
0.2888

At a glance

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

Hex
#798cec
Hue
230°
blue
Saturation
75%
electric
Lightness
70%
light
Brightness
93%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2888
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.78:1
Closest name
Cornflower Blue
ΔE2000 6
Where it sits
Hue230° of 360°
Saturation75%
Lightness70%
Temperature
Warm ← → Cool89% 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#798cec
RGBrgb(121, 140, 236)
HSLhsl(230, 75%, 70%)
CMYKcmyk(49%, 41%, 0%, 8%)
LABlab(60.7 18.8 -50.7)
LCHlch(60.7 54.0 290.4)
OKLCHoklch(0.668 0.144 273.5)
Decimal7965932
Display P3color(display-p3 0.475 0.549 0.925)

Copy-ready code

/* CSS */
color: #798cec;
background-color: #798cec;
/* Tailwind (arbitrary) */
class="text-[#798cec] bg-[#798cec]"
/* SCSS */
$brand: #798cec;
/* SwiftUI */
Color(red: 0.475, green: 0.549, blue: 0.925)
/* Android */
Color.parseColor("#798cec")
/* Flutter */
Color(0xFF798CEC)
/* Python / OpenCV (BGR) */
(236, 140, 121)

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

Accessibility — WCAG contrast

Aa
#798cec on white: 3.10:1
AA ✗ fail · AA-large · AAA
Aa
#798cec on black: 6.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6697F0
deuteranopia · #5B8EEA
tritanopia · #4BA0B1

Color scale — 50 to 950

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

#F3F4FC
#E7EAF9
#C8CFF4
#9DABF1
#798cec
#3A56E3
#1E3DD6
#1933B3
#14288F
#132168
#0C1541
Base = 400Lightest = 50 · #F3F4FCDarkest = 950 · #0C1541
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E7EAF9;
  --brand-200: #C8CFF4;
  --brand-300: #9DABF1;
  --brand-400: #798cec;
  --brand-500: #3A56E3;
  --brand-600: #1E3DD6;
  --brand-700: #1933B3;
  --brand-800: #14288F;
  --brand-900: #132168;
  --brand-950: #0C1541;
  --brand: #798cec;
  --brand-ink: #000000;
}

Colors that work with #798cec

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#C0C7ED
Hairlines and dividers
Muted text#4B589B
Captions on the surface
Accent#B77415
Second voice, not a rival
Dark variant#102070
Hover, pressed, headers
Light variant#E9ECFC
Selected rows, tints
Dark surface#141624
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 #798cec

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#ECD979
Analogous left#79C5EC
Analogous right#A079EC
Split-complement 1#ECA079
Split-complement 2#C5EC79
Triadic 1#EC798C
Triadic 2#8CEC79
Tetradic#EC79C5

RGB percentages

Red47.5%
Green54.9%
Blue92.5%

CMYK percentages

Cyan48.7%
Magenta40.7%
Yellow0.0%
Key (black)7.5%

Color previews

#798cec text on a black background

contrast 6.78:1

Card sample

#798cec text on a white background

contrast 3.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #798cec;
Background color
Panel with #798cec background
background-color: #798cec;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #798cec;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(121, 140, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 140, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #798cec;
background: linear-gradient(135deg, #798cec, #B379EC);

Monochromatic scale

Palettes built from #798cec

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.

#798cec 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.

#798cec, answered

What color is #798cec?

#798cec is a light electric blue, closest to Cornflower Blue (ΔE2000 6). It sits at 230° on the hue wheel with 75% saturation and 70% lightness, which reads as cool.

What is the RGB value of #798cec?

rgb(121, 140, 236) — 121 red, 140 green and 236 blue out of 255, or 47.5% / 54.9% / 92.5% by channel.

Is #798cec a light or a dark color?

It is a mid-tone. Relative luminance is 0.2888 and perceived brightness is 58%, so black text on it reaches 6.78:1.

Should I use black or white text on #798cec?

Black. It scores 6.78:1 against #798cec, versus 3.10:1 for white — AA at any size.

What is the complementary color of #798cec?

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

What colors go well with #798cec?

For interface work: #F4F5FA as the surface, #C0C7ED for borders, #4B589B for secondary text, #B77415 as an accent and #102070 for hover and pressed states. For a palette, the analogous pair #79C5EC and #A079EC stays calm, while #ECD979 is the loudest partner.

What is #798cec in CMYK for printing?

cmyk(49%, 41%, 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 #798cec warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9079EC; nudged cooler, #77A2EE.

Work with #798cec in the Color Lab