Skip to content

#5d95eb

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

RGB
93, 149, 235
HSL
216°, 78%, 64%
CMYK
60, 37, 0, 8
Luminance
0.2982

At a glance

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

Hex
#5d95eb
Hue
216°
blue
Saturation
78%
electric
Lightness
64%
balanced
Brightness
92%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2982
WCAG relative
Temperature
Cool
97/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.96:1
Closest name
Cornflower Blue
ΔE2000 1.3
Where it sits
Hue216° of 360°
Saturation78%
Lightness64%
Temperature
Warm ← → Cool97% 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#5d95eb
RGBrgb(93, 149, 235)
HSLhsl(216, 78%, 64%)
CMYKcmyk(60%, 37%, 0%, 8%)
LABlab(61.5 7.3 -48.9)
LCHlch(61.5 49.5 278.5)
OKLCHoklch(0.670 0.141 258.7)
Decimal6133227
Display P3color(display-p3 0.365 0.584 0.922)

Copy-ready code

/* CSS */
color: #5d95eb;
background-color: #5d95eb;
/* Tailwind (arbitrary) */
class="text-[#5d95eb] bg-[#5d95eb]"
/* SCSS */
$brand: #5d95eb;
/* SwiftUI */
Color(red: 0.365, green: 0.584, blue: 0.922)
/* Android */
Color.parseColor("#5d95eb")
/* Flutter */
Color(0xFF5D95EB)
/* Python / OpenCV (BGR) */
(235, 149, 93)

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

Accessibility — WCAG contrast

Aa
#5d95eb on white: 3.02:1
AA ✗ fail · AA-large · AAA
Aa
#5d95eb on black: 6.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #709CEF
deuteranopia · #5D8EE9
tritanopia · #00A8B5

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5d95eb 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
#E6EEF9
#C7D9F5
#9BBEF3
#5d95eb
#377CE6
#1B66DA
#1655B6
#124491
#113469
#0B2042
Base = 400Lightest = 50 · #F3F6FCDarkest = 950 · #0B2042
:root {
  --brand-50: #F3F6FC;
  --brand-100: #E6EEF9;
  --brand-200: #C7D9F5;
  --brand-300: #9BBEF3;
  --brand-400: #5d95eb;
  --brand-500: #377CE6;
  --brand-600: #1B66DA;
  --brand-700: #1655B6;
  --brand-800: #124491;
  --brand-900: #113469;
  --brand-950: #0B2042;
  --brand: #5d95eb;
  --brand-ink: #000000;
}

Colors that work with #5d95eb

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#C0D1ED
Hairlines and dividers
Muted text#4B6A9B
Captions on the surface
Accent#BA4D12
Second voice, not a rival
Dark variant#0E3571
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 #5d95eb

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#EBB35D
Analogous left#5DDCEB
Analogous right#6C5DEB
Split-complement 1#EB6C5D
Split-complement 2#DCEB5D
Triadic 1#EB5D95
Triadic 2#95EB5D
Tetradic#EB5DDC

RGB percentages

Red36.5%
Green58.4%
Blue92.2%

CMYK percentages

Cyan60.4%
Magenta36.6%
Yellow0.0%
Key (black)7.8%

Color previews

#5d95eb text on a black background

contrast 6.96:1

Card sample

#5d95eb text on a white background

contrast 3.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(93, 149, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(93, 149, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5d95eb;
background: linear-gradient(135deg, #5d95eb, #845DEB);

Monochromatic scale

Palettes built from #5d95eb

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.

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

#5d95eb, answered

What color is #5d95eb?

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

What is the RGB value of #5d95eb?

rgb(93, 149, 235) — 93 red, 149 green and 235 blue out of 255, or 36.5% / 58.4% / 92.2% by channel.

Is #5d95eb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2982 and perceived brightness is 58%, so black text on it reaches 6.96:1.

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

Black. It scores 6.96:1 against #5d95eb, versus 3.02:1 for white — AA at any size.

What is the complementary color of #5d95eb?

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

What colors go well with #5d95eb?

For interface work: #F4F7FA as the surface, #C0D1ED for borders, #4B6A9B for secondary text, #BA4D12 as an accent and #0E3571 for hover and pressed states. For a palette, the analogous pair #5DDCEB and #6C5DEB stays calm, while #EBB35D is the loudest partner.

What is #5d95eb in CMYK for printing?

cmyk(60%, 37%, 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 #5d95eb warm or cool?

Cool — it scores 97 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5D61EB; nudged cooler, #448DEA.

Work with #5d95eb in the Color Lab