Skip to content

#7ba3fe

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

RGB
123, 163, 254
HSL
222°, 99%, 74%
CMYK
52, 36, 0, 0
Luminance
0.3756

At a glance

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

Hex
#7ba3fe
Hue
222°
blue
Saturation
99%
electric
Lightness
74%
light
Brightness
100%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3756
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.51:1
Closest name
Cornflower Blue
ΔE2000 4.9
Where it sits
Hue222° of 360°
Saturation99%
Lightness74%
Temperature
Warm ← → Cool93% 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#7ba3fe
RGBrgb(123, 163, 254)
HSLhsl(222, 99%, 74%)
CMYKcmyk(52%, 36%, 0%, 0%)
LABlab(67.7 11.3 -49.4)
LCHlch(67.7 50.7 282.8)
OKLCHoklch(0.725 0.140 265.1)
Decimal8102910
Display P3color(display-p3 0.482 0.639 0.996)

Copy-ready code

/* CSS */
color: #7ba3fe;
background-color: #7ba3fe;
/* Tailwind (arbitrary) */
class="text-[#7ba3fe] bg-[#7ba3fe]"
/* SCSS */
$brand: #7ba3fe;
/* SwiftUI */
Color(red: 0.482, green: 0.639, blue: 0.996)
/* Android */
Color.parseColor("#7ba3fe")
/* Flutter */
Color(0xFF7BA3FE)
/* Python / OpenCV (BGR) */
(254, 163, 123)

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

Accessibility — WCAG contrast

Aa
#7ba3fe on white: 2.47:1
AA ✗ fail · AA-large · AAA
Aa
#7ba3fe on black: 8.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7FABFF
deuteranopia · #709FFC
tritanopia · #3BB7C5

Color scale — 50 to 950

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

#F1F5FE
#E3EBFC
#C1D2FB
#7ba3fe
#588BFE
#2064FD
#024BF3
#023FCA
#0132A2
#062875
#041949
Base = 300Lightest = 50 · #F1F5FEDarkest = 950 · #041949
:root {
  --brand-50: #F1F5FE;
  --brand-100: #E3EBFC;
  --brand-200: #C1D2FB;
  --brand-300: #7ba3fe;
  --brand-400: #588BFE;
  --brand-500: #2064FD;
  --brand-600: #024BF3;
  --brand-700: #023FCA;
  --brand-800: #0132A2;
  --brand-900: #062875;
  --brand-950: #041949;
  --brand: #7ba3fe;
  --brand-ink: #000000;
}

Colors that work with #7ba3fe

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#F4F6FA
Tinted page background
Border#C0CDED
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#CC5A00
Second voice, not a rival
Dark variant#01277F
Hover, pressed, headers
Light variant#E6EDFF
Selected rows, tints
Dark surface#141924
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 #7ba3fe

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#FED67B
Analogous left#7BE4FE
Analogous right#947BFE
Split-complement 1#FE947B
Split-complement 2#E4FE7B
Triadic 1#FE7BA3
Triadic 2#A3FE7B
Tetradic#FE7BE4

RGB percentages

Red48.2%
Green63.9%
Blue99.6%

CMYK percentages

Cyan51.6%
Magenta35.8%
Yellow0.0%
Key (black)0.4%

Color previews

#7ba3fe text on a black background

contrast 8.51:1

Card sample

#7ba3fe text on a white background

contrast 2.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7ba3fe;
Background color
Panel with #7ba3fe background
background-color: #7ba3fe;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7ba3fe;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(123, 163, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(123, 163, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7ba3fe;
background: linear-gradient(135deg, #7ba3fe, #AA7BFE);

Monochromatic scale

Palettes built from #7ba3fe

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.

#7ba3fe 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.

#7ba3fe, answered

What color is #7ba3fe?

#7ba3fe is a light electric blue, closest to Cornflower Blue (ΔE2000 4.9). It sits at 222° on the hue wheel with 99% saturation and 74% lightness, which reads as cool.

What is the RGB value of #7ba3fe?

rgb(123, 163, 254) — 123 red, 163 green and 254 blue out of 255, or 48.2% / 63.9% / 99.6% by channel.

Is #7ba3fe a light or a dark color?

It is a mid-tone. Relative luminance is 0.3756 and perceived brightness is 65%, so black text on it reaches 8.51:1.

Should I use black or white text on #7ba3fe?

Black. It scores 8.51:1 against #7ba3fe, versus 2.47:1 for white — AAA at any size.

What is the complementary color of #7ba3fe?

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

What colors go well with #7ba3fe?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B639B for secondary text, #CC5A00 as an accent and #01277F for hover and pressed states. For a palette, the analogous pair #7BE4FE and #947BFE stays calm, while #FED67B is the loudest partner.

What is #7ba3fe in CMYK for printing?

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

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #837BFE; nudged cooler, #7AB0FF.

Work with #7ba3fe in the Color Lab