Skip to content

#97a2fd

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

RGB
151, 162, 253
HSL
234°, 96%, 79%
CMYK
40, 36, 0, 1
Luminance
0.3951

At a glance

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

Hex
#97a2fd
Hue
234°
blue
Saturation
96%
electric
Lightness
79%
light
Brightness
99%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3951
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.90:1
Closest name
Cornflower Blue
ΔE2000 9.3
Where it sits
Hue234° of 360°
Saturation96%
Lightness79%
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#97a2fd
RGBrgb(151, 162, 253)
HSLhsl(234, 96%, 79%)
CMYKcmyk(40%, 36%, 0%, 1%)
LABlab(69.1 18.1 -46.5)
LCHlch(69.1 49.9 291.3)
OKLCHoklch(0.741 0.132 277.4)
Decimal9937661
Display P3color(display-p3 0.592 0.635 0.992)

Copy-ready code

/* CSS */
color: #97a2fd;
background-color: #97a2fd;
/* Tailwind (arbitrary) */
class="text-[#97a2fd] bg-[#97a2fd]"
/* SCSS */
$brand: #97a2fd;
/* SwiftUI */
Color(red: 0.592, green: 0.635, blue: 0.992)
/* Android */
Color.parseColor("#97a2fd")
/* Flutter */
Color(0xFF97A2FD)
/* Python / OpenCV (BGR) */
(253, 162, 151)

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

Accessibility — WCAG contrast

Aa
#97a2fd on white: 2.36:1
AA ✗ fail · AA-large · AAA
Aa
#97a2fd on black: 8.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #83ADFF
deuteranopia · #7CA5FB
tritanopia · #77B4C4

Color scale — 50 to 950

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

#F1F3FD
#E4E6FC
#C1C7FA
#97a2fd
#5A6BFC
#233AFB
#051EF0
#0419C8
#0314A0
#071373
#040C48
Base = 300Lightest = 50 · #F1F3FDDarkest = 950 · #040C48
:root {
  --brand-50: #F1F3FD;
  --brand-100: #E4E6FC;
  --brand-200: #C1C7FA;
  --brand-300: #97a2fd;
  --brand-400: #5A6BFC;
  --brand-500: #233AFB;
  --brand-600: #051EF0;
  --brand-700: #0419C8;
  --brand-800: #0314A0;
  --brand-900: #071373;
  --brand-950: #040C48;
  --brand: #97a2fd;
  --brand-ink: #000000;
}

Colors that work with #97a2fd

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#CC8300
Second voice, not a rival
Dark variant#02107D
Hover, pressed, headers
Light variant#E6E9FF
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 #97a2fd

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#FDF297
Analogous left#97D5FD
Analogous right#BF97FD
Split-complement 1#FDBF97
Split-complement 2#D5FD97
Triadic 1#FD97A2
Triadic 2#A2FD97
Tetradic#FD97D5

RGB percentages

Red59.2%
Green63.5%
Blue99.2%

CMYK percentages

Cyan40.3%
Magenta36.0%
Yellow0.0%
Key (black)0.8%

Color previews

#97a2fd text on a black background

contrast 8.90:1

Card sample

#97a2fd text on a white background

contrast 2.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #97a2fd;
Background color
Panel with #97a2fd background
background-color: #97a2fd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #97a2fd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(151, 162, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 162, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #97a2fd;
background: linear-gradient(135deg, #97a2fd, #D097FD);

Monochromatic scale

Palettes built from #97a2fd

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.

#97a2fd 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.

#97a2fd, answered

What color is #97a2fd?

#97a2fd is a light electric blue, closest to Cornflower Blue (ΔE2000 9.3). It sits at 234° on the hue wheel with 96% saturation and 79% lightness, which reads as cool.

What is the RGB value of #97a2fd?

rgb(151, 162, 253) — 151 red, 162 green and 253 blue out of 255, or 59.2% / 63.5% / 99.2% by channel.

Is #97a2fd a light or a dark color?

It is a mid-tone. Relative luminance is 0.3951 and perceived brightness is 67%, so black text on it reaches 8.90:1.

Should I use black or white text on #97a2fd?

Black. It scores 8.90:1 against #97a2fd, versus 2.36:1 for white — AAA at any size.

What is the complementary color of #97a2fd?

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

What colors go well with #97a2fd?

For interface work: #F4F5FA as the surface, #C0C5ED for borders, #4B539B for secondary text, #CC8300 as an accent and #02107D for hover and pressed states. For a palette, the analogous pair #97D5FD and #BF97FD stays calm, while #FDF297 is the loudest partner.

What is #97a2fd in CMYK for printing?

cmyk(40%, 36%, 0%, 1%). 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 #97a2fd 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 #B197FD; nudged cooler, #96BAFE.

Work with #97a2fd in the Color Lab