Skip to content

#397cfb

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

RGB
57, 124, 251
HSL
219°, 96%, 60%
CMYK
77, 51, 0, 2
Luminance
0.2225

At a glance

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

Hex
#397cfb
Hue
219°
blue
Saturation
96%
electric
Lightness
60%
balanced
Brightness
98%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2225
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.45:1
Closest name
Royal Blue
ΔE2000 7.5
Where it sits
Hue219° of 360°
Saturation96%
Lightness60%
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#397cfb
RGBrgb(57, 124, 251)
HSLhsl(219, 96%, 60%)
CMYKcmyk(77%, 51%, 0%, 2%)
LABlab(54.3 22.9 -69.4)
LCHlch(54.3 73.0 288.2)
OKLCHoklch(0.614 0.202 261.6)
Decimal3767547
Display P3color(display-p3 0.224 0.486 0.984)

Copy-ready code

/* CSS */
color: #397cfb;
background-color: #397cfb;
/* Tailwind (arbitrary) */
class="text-[#397cfb] bg-[#397cfb]"
/* SCSS */
$brand: #397cfb;
/* SwiftUI */
Color(red: 0.224, green: 0.486, blue: 0.984)
/* Android */
Color.parseColor("#397cfb")
/* Flutter */
Color(0xFF397CFB)
/* Python / OpenCV (BGR) */
(251, 124, 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 #397cfb · 5.45:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.85:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.45:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #397cfb as text scores 3.85:1 on white and 5.45:1 on black.

Accessibility — WCAG contrast

Aa
#397cfb on white: 3.85:1
AA ✗ fail · AA-large · AAA
Aa
#397cfb on black: 5.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #288BFF
deuteranopia · #0079F8
tritanopia · #009BB0

Color scale — 50 to 950

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

#F1F6FD
#E4ECFC
#C1D5FA
#91B6FD
#5A92FC
#397cfb
#0556F0
#0448C8
#0339A0
#072C73
#041C48
Base = 500Lightest = 50 · #F1F6FDDarkest = 950 · #041C48
:root {
  --brand-50: #F1F6FD;
  --brand-100: #E4ECFC;
  --brand-200: #C1D5FA;
  --brand-300: #91B6FD;
  --brand-400: #5A92FC;
  --brand-500: #397cfb;
  --brand-600: #0556F0;
  --brand-700: #0448C8;
  --brand-800: #0339A0;
  --brand-900: #072C73;
  --brand-950: #041C48;
  --brand: #397cfb;
  --brand-ink: #000000;
}

Colors that work with #397cfb

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#CC5300
Second voice, not a rival
Dark variant#032D7D
Hover, pressed, headers
Light variant#E6EEFE
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 #397cfb

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#FBB839
Analogous left#39DDFB
Analogous right#5739FB
Split-complement 1#FB5739
Split-complement 2#DDFB39
Triadic 1#FB397C
Triadic 2#7CFB39
Tetradic#FB39DD

RGB percentages

Red22.4%
Green48.6%
Blue98.4%

CMYK percentages

Cyan77.3%
Magenta50.6%
Yellow0.0%
Key (black)1.6%

Color previews

#397cfb text on a black background

contrast 5.45:1

Card sample

#397cfb text on a white background

contrast 3.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(57, 124, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(57, 124, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #397cfb;
background: linear-gradient(135deg, #397cfb, #7739FB);

Monochromatic scale

Palettes built from #397cfb

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.

#397cfb 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.

#397cfb, answered

What color is #397cfb?

#397cfb is a balanced electric blue, closest to Royal Blue (ΔE2000 7.5). It sits at 219° on the hue wheel with 96% saturation and 60% lightness, which reads as cool.

What is the RGB value of #397cfb?

rgb(57, 124, 251) — 57 red, 124 green and 251 blue out of 255, or 22.4% / 48.6% / 98.4% by channel.

Is #397cfb a light or a dark color?

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

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

Black. It scores 5.45:1 against #397cfb, versus 3.85:1 for white — AA at any size.

What is the complementary color of #397cfb?

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

What colors go well with #397cfb?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B669B for secondary text, #CC5300 as an accent and #032D7D for hover and pressed states. For a palette, the analogous pair #39DDFB and #5739FB stays calm, while #FBB839 is the loudest partner.

What is #397cfb in CMYK for printing?

cmyk(77%, 51%, 0%, 2%). 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 #397cfb 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 #3D39FB; nudged cooler, #1E79FD.

Work with #397cfb in the Color Lab