Skip to content

#397bfc

a balanced, electric blue · cool · closest name: Royal Blue

RGB
57, 123, 252
HSL
220°, 97%, 61%
CMYK
77, 51, 0, 1
Luminance
0.2206

At a glance

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

Hex
#397bfc
Hue
220°
blue
Saturation
97%
electric
Lightness
61%
balanced
Brightness
99%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2206
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.41:1
Closest name
Royal Blue
ΔE2000 7.2
Where it sits
Hue220° of 360°
Saturation97%
Lightness61%
Temperature
Warm ← → Cool95% 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#397bfc
RGBrgb(57, 123, 252)
HSLhsl(220, 97%, 61%)
CMYKcmyk(77%, 51%, 0%, 1%)
LABlab(54.1 23.8 -70.2)
LCHlch(54.1 74.2 288.8)
OKLCHoklch(0.612 0.204 262.0)
Decimal3767292
Display P3color(display-p3 0.224 0.482 0.988)

Copy-ready code

/* CSS */
color: #397bfc;
background-color: #397bfc;
/* Tailwind (arbitrary) */
class="text-[#397bfc] bg-[#397bfc]"
/* SCSS */
$brand: #397bfc;
/* SwiftUI */
Color(red: 0.224, green: 0.482, blue: 0.988)
/* Android */
Color.parseColor("#397bfc")
/* Flutter */
Color(0xFF397BFC)
/* Python / OpenCV (BGR) */
(252, 123, 57)

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

Accessibility — WCAG contrast

Aa
#397bfc on white: 3.88:1
AA ✗ fail · AA-large · AAA
Aa
#397bfc on black: 5.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #218BFF
deuteranopia · #0079F9
tritanopia · #009AB0

Color scale — 50 to 950

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

#F1F5FD
#E4ECFC
#C1D5FB
#90B5FD
#5990FC
#397bfc
#0454F1
#0346C9
#0238A1
#072C74
#041B48
Base = 500Lightest = 50 · #F1F5FDDarkest = 950 · #041B48
:root {
  --brand-50: #F1F5FD;
  --brand-100: #E4ECFC;
  --brand-200: #C1D5FB;
  --brand-300: #90B5FD;
  --brand-400: #5990FC;
  --brand-500: #397bfc;
  --brand-600: #0454F1;
  --brand-700: #0346C9;
  --brand-800: #0238A1;
  --brand-900: #072C74;
  --brand-950: #041B48;
  --brand: #397bfc;
  --brand-ink: #000000;
}

Colors that work with #397bfc

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#C0CFED
Hairlines and dividers
Muted text#4B669B
Captions on the surface
Accent#CC5400
Second voice, not a rival
Dark variant#022C7E
Hover, pressed, headers
Light variant#E6EEFF
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 #397bfc

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
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#FCBA39
Analogous left#39DCFC
Analogous right#5939FC
Split-complement 1#FC5939
Split-complement 2#DCFC39
Triadic 1#FC397B
Triadic 2#7BFC39
Tetradic#FC39DC

RGB percentages

Red22.4%
Green48.2%
Blue98.8%

CMYK percentages

Cyan77.4%
Magenta51.2%
Yellow0.0%
Key (black)1.2%

Color previews

#397bfc text on a black background

contrast 5.41:1

Card sample

#397bfc text on a white background

contrast 3.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #397bfc;
Background color
Panel with #397bfc background
background-color: #397bfc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #397bfc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(57, 123, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(57, 123, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #397bfc;
background: linear-gradient(135deg, #397bfc, #7939FC);

Monochromatic scale

Palettes built from #397bfc

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.

#397bfc 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
ButtonsLinksFocus statesCharts
Print note

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

#397bfc, answered

What color is #397bfc?

#397bfc is a balanced electric blue, closest to Royal Blue (ΔE2000 7.2). It sits at 220° on the hue wheel with 97% saturation and 61% lightness, which reads as cool.

What is the RGB value of #397bfc?

rgb(57, 123, 252) — 57 red, 123 green and 252 blue out of 255, or 22.4% / 48.2% / 98.8% by channel.

Is #397bfc a light or a dark color?

It is a mid-tone. Relative luminance is 0.2206 and perceived brightness is 51%, so black text on it reaches 5.41:1.

Should I use black or white text on #397bfc?

Black. It scores 5.41:1 against #397bfc, versus 3.88:1 for white — AA at any size.

What is the complementary color of #397bfc?

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

What colors go well with #397bfc?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B669B for secondary text, #CC5400 as an accent and #022C7E for hover and pressed states. For a palette, the analogous pair #39DCFC and #5939FC stays calm, while #FCBA39 is the loudest partner.

What is #397bfc in CMYK for printing?

cmyk(77%, 51%, 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 #397bfc warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3F39FC; nudged cooler, #1E78FE.

Work with #397bfc in the Color Lab