Skip to content

#5b7ef1

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

RGB
91, 126, 241
HSL
226°, 84%, 65%
CMYK
62, 48, 0, 6
Luminance
0.2350

At a glance

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

Hex
#5b7ef1
Hue
226°
blue
Saturation
84%
electric
Lightness
65%
light
Brightness
95%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2350
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.70:1
Closest name
Cornflower Blue
ΔE2000 7.4
Where it sits
Hue226° of 360°
Saturation84%
Lightness65%
Temperature
Warm ← → Cool91% 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#5b7ef1
RGBrgb(91, 126, 241)
HSLhsl(226, 84%, 65%)
CMYKcmyk(62%, 48%, 0%, 6%)
LABlab(55.6 22.8 -61.7)
LCHlch(55.6 65.7 290.3)
OKLCHoklch(0.625 0.176 268.2)
Decimal5996273
Display P3color(display-p3 0.357 0.494 0.945)

Copy-ready code

/* CSS */
color: #5b7ef1;
background-color: #5b7ef1;
/* Tailwind (arbitrary) */
class="text-[#5b7ef1] bg-[#5b7ef1]"
/* SCSS */
$brand: #5b7ef1;
/* SwiftUI */
Color(red: 0.357, green: 0.494, blue: 0.945)
/* Android */
Color.parseColor("#5b7ef1")
/* Flutter */
Color(0xFF5B7EF1)
/* Python / OpenCV (BGR) */
(241, 126, 91)

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

Accessibility — WCAG contrast

Aa
#5b7ef1 on white: 3.68:1
AA ✗ fail · AA-large · AAA
Aa
#5b7ef1 on black: 5.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #438CF5
deuteranopia · #247FEF
tritanopia · #0098AC

Color scale — 50 to 950

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

#F2F5FC
#E6EAFA
#C5D1F6
#98AEF6
#5b7ef1
#305CED
#1343E2
#1038BC
#0D2D96
#0E246D
#091644
Base = 400Lightest = 50 · #F2F5FCDarkest = 950 · #091644
:root {
  --brand-50: #F2F5FC;
  --brand-100: #E6EAFA;
  --brand-200: #C5D1F6;
  --brand-300: #98AEF6;
  --brand-400: #5b7ef1;
  --brand-500: #305CED;
  --brand-600: #1343E2;
  --brand-700: #1038BC;
  --brand-800: #0D2D96;
  --brand-900: #0E246D;
  --brand-950: #091644;
  --brand: #5b7ef1;
  --brand-ink: #000000;
}

Colors that work with #5b7ef1

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#C0CAED
Hairlines and dividers
Muted text#4B5D9B
Captions on the surface
Accent#C1690B
Second voice, not a rival
Dark variant#0A2375
Hover, pressed, headers
Light variant#E8EDFD
Selected rows, tints
Dark surface#141824
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 #5b7ef1

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#F1CE5B
Analogous left#5BC9F1
Analogous right#835BF1
Split-complement 1#F1835B
Split-complement 2#C9F15B
Triadic 1#F15B7E
Triadic 2#7EF15B
Tetradic#F15BC9

RGB percentages

Red35.7%
Green49.4%
Blue94.5%

CMYK percentages

Cyan62.2%
Magenta47.7%
Yellow0.0%
Key (black)5.5%

Color previews

#5b7ef1 text on a black background

contrast 5.70:1

Card sample

#5b7ef1 text on a white background

contrast 3.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5b7ef1;
Background color
Panel with #5b7ef1 background
background-color: #5b7ef1;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5b7ef1;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(91, 126, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 126, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b7ef1;
background: linear-gradient(135deg, #5b7ef1, #9C5BF1);

Monochromatic scale

Palettes built from #5b7ef1

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.

#5b7ef1 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.

#5b7ef1, answered

What color is #5b7ef1?

#5b7ef1 is a light electric blue, closest to Cornflower Blue (ΔE2000 7.4). It sits at 226° on the hue wheel with 84% saturation and 65% lightness, which reads as cool.

What is the RGB value of #5b7ef1?

rgb(91, 126, 241) — 91 red, 126 green and 241 blue out of 255, or 35.7% / 49.4% / 94.5% by channel.

Is #5b7ef1 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2350 and perceived brightness is 53%, so black text on it reaches 5.70:1.

Should I use black or white text on #5b7ef1?

Black. It scores 5.70:1 against #5b7ef1, versus 3.68:1 for white — AA at any size.

What is the complementary color of #5b7ef1?

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

What colors go well with #5b7ef1?

For interface work: #F4F6FA as the surface, #C0CAED for borders, #4B5D9B for secondary text, #C1690B as an accent and #0A2375 for hover and pressed states. For a palette, the analogous pair #5BC9F1 and #835BF1 stays calm, while #F1CE5B is the loudest partner.

What is #5b7ef1 in CMYK for printing?

cmyk(62%, 48%, 0%, 6%). 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 #5b7ef1 warm or cool?

Cool — it scores 91 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6F5BF1; nudged cooler, #5992F3.

Work with #5b7ef1 in the Color Lab