Skip to content

#5c91eb

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

RGB
92, 145, 235
HSL
218°, 78%, 64%
CMYK
61, 38, 0, 8
Luminance
0.2852

At a glance

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

Hex
#5c91eb
Hue
218°
blue
Saturation
78%
electric
Lightness
64%
balanced
Brightness
92%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2852
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.70:1
Closest name
Cornflower Blue
ΔE2000 1.4
Where it sits
Hue218° of 360°
Saturation78%
Lightness64%
Temperature
Warm ← → Cool96% 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#5c91eb
RGBrgb(92, 145, 235)
HSLhsl(218, 78%, 64%)
CMYKcmyk(61%, 38%, 0%, 8%)
LABlab(60.4 9.5 -50.7)
LCHlch(60.4 51.6 280.6)
OKLCHoklch(0.661 0.146 260.4)
Decimal6066667
Display P3color(display-p3 0.361 0.569 0.922)

Copy-ready code

/* CSS */
color: #5c91eb;
background-color: #5c91eb;
/* Tailwind (arbitrary) */
class="text-[#5c91eb] bg-[#5c91eb]"
/* SCSS */
$brand: #5c91eb;
/* SwiftUI */
Color(red: 0.361, green: 0.569, blue: 0.922)
/* Android */
Color.parseColor("#5c91eb")
/* Flutter */
Color(0xFF5C91EB)
/* Python / OpenCV (BGR) */
(235, 145, 92)

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

Accessibility — WCAG contrast

Aa
#5c91eb on white: 3.13:1
AA ✗ fail · AA-large · AAA
Aa
#5c91eb on black: 6.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6A99EF
deuteranopia · #568BE9
tritanopia · #00A5B3

Color scale — 50 to 950

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

#F3F6FC
#E6EDF9
#C7D8F5
#9BBCF3
#5c91eb
#3778E6
#1B62DA
#1651B6
#124191
#113269
#0B1F42
Base = 400Lightest = 50 · #F3F6FCDarkest = 950 · #0B1F42
:root {
  --brand-50: #F3F6FC;
  --brand-100: #E6EDF9;
  --brand-200: #C7D8F5;
  --brand-300: #9BBCF3;
  --brand-400: #5c91eb;
  --brand-500: #3778E6;
  --brand-600: #1B62DA;
  --brand-700: #1651B6;
  --brand-800: #124191;
  --brand-900: #113269;
  --brand-950: #0B1F42;
  --brand: #5c91eb;
  --brand-ink: #000000;
}

Colors that work with #5c91eb

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#F4F7FA
Tinted page background
Border#C0D0ED
Hairlines and dividers
Muted text#4B689B
Captions on the surface
Accent#BA5112
Second voice, not a rival
Dark variant#0E3372
Hover, pressed, headers
Light variant#E8F0FC
Selected rows, tints
Dark surface#141A24
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 #5c91eb

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#EBB65C
Analogous left#5CD8EB
Analogous right#6F5CEB
Split-complement 1#EB6F5C
Split-complement 2#D8EB5C
Triadic 1#EB5C91
Triadic 2#91EB5C
Tetradic#EB5CD8

RGB percentages

Red36.1%
Green56.9%
Blue92.2%

CMYK percentages

Cyan60.9%
Magenta38.3%
Yellow0.0%
Key (black)7.8%

Color previews

#5c91eb text on a black background

contrast 6.70:1

Card sample

#5c91eb text on a white background

contrast 3.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(92, 145, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(92, 145, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5c91eb;
background: linear-gradient(135deg, #5c91eb, #865CEB);

Monochromatic scale

Palettes built from #5c91eb

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.

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

#5c91eb, answered

What color is #5c91eb?

#5c91eb is a balanced electric blue, closest to Cornflower Blue (ΔE2000 1.4). It sits at 218° on the hue wheel with 78% saturation and 64% lightness, which reads as cool.

What is the RGB value of #5c91eb?

rgb(92, 145, 235) — 92 red, 145 green and 235 blue out of 255, or 36.1% / 56.9% / 92.2% by channel.

Is #5c91eb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2852 and perceived brightness is 57%, so black text on it reaches 6.70:1.

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

Black. It scores 6.70:1 against #5c91eb, versus 3.13:1 for white — AA at any size.

What is the complementary color of #5c91eb?

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

What colors go well with #5c91eb?

For interface work: #F4F7FA as the surface, #C0D0ED for borders, #4B689B for secondary text, #BA5112 as an accent and #0E3372 for hover and pressed states. For a palette, the analogous pair #5CD8EB and #6F5CEB stays calm, while #EBB65C is the loudest partner.

What is #5c91eb in CMYK for printing?

cmyk(61%, 38%, 0%, 8%). 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 #5c91eb warm or cool?

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5C5CEB; nudged cooler, #438BEA.

Work with #5c91eb in the Color Lab