#5d85eb
a balanced, electric blue · cool · closest name: Cornflower Blue
At a glance
Every number on this page in one read: what #5d85eb is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #5d85eb |
| RGB | rgb(93, 133, 235) |
| HSL | hsl(223, 78%, 64%) |
| CMYK | cmyk(60%, 43%, 0%, 8%) |
| LAB | lab(57.2 16.9 -55.8) |
| LCH | lch(57.2 58.3 286.8) |
| OKLCH | oklch(0.637 0.159 265.9) |
| Decimal | 6129131 |
| Display P3 | color(display-p3 0.365 0.522 0.922) |
Copy-ready code
/* CSS */
color: #5d85eb;
background-color: #5d85eb;
/* Tailwind (arbitrary) */
class="text-[#5d85eb] bg-[#5d85eb]"
/* SCSS */
$brand: #5d85eb;
/* SwiftUI */
Color(red: 0.365, green: 0.522, blue: 0.922)
/* Android */
Color.parseColor("#5d85eb")
/* Flutter */
Color(0xFF5D85EB)
/* Python / OpenCV (BGR) */
(235, 133, 93)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #5d85eb 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.
:root {
--brand-50: #F3F5FC;
--brand-100: #E6ECF9;
--brand-200: #C7D4F5;
--brand-300: #9BB4F3;
--brand-400: #5d85eb;
--brand-500: #3769E6;
--brand-600: #1B51DA;
--brand-700: #1643B6;
--brand-800: #123691;
--brand-900: #112A69;
--brand-950: #0B1A42;
--brand: #5d85eb;
--brand-ink: #000000;
}Colors that work with #5d85eb
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #5d85eb
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #EBC35D | Directly opposite — maximum tension | |
| Analogous left | #5DCCEB | Neighbour, quieter | |
| Analogous right | #7C5DEB | Neighbour, quieter | |
| Split-complement 1 | #EB7C5D | Contrast without the clash | |
| Split-complement 2 | #CCEB5D | Contrast without the clash | |
| Triadic 1 | #EB5D85 | Even thirds — balanced and loud | |
| Triadic 2 | #85EB5D | Even thirds — balanced and loud | |
| Tetradic | #EB5DCC | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#5d85eb text on a black background
contrast 6.02:1
#5d85eb text on a white background
contrast 3.49:1
CSS3 live lab
The quick brown fox
color: #5d85eb;
background-color: #5d85eb;
Glowing headline
text-shadow: 2px 2px 8px #5d85eb;
Soft neon halo
text-shadow: 0 0 14px rgba(93, 133, 235, 0.45);
box-shadow: 0 12px 32px -8px rgba(93, 133, 235, 0.45);
border: 3px solid #5d85eb; background: linear-gradient(135deg, #5d85eb, #945DEB);
Monochromatic scale
Palettes built from #5d85eb
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.
Closest color with a full write-up: Cornflower Blue (#6495ed) — ΔE2000 5.1 away, with its history, psychology and brand usage.
#5d85eb in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#5d85eb, answered
What color is #5d85eb?
#5d85eb is a balanced electric blue, closest to Cornflower Blue (ΔE2000 5.1). It sits at 223° on the hue wheel with 78% saturation and 64% lightness, which reads as cool.
What is the RGB value of #5d85eb?
rgb(93, 133, 235) — 93 red, 133 green and 235 blue out of 255, or 36.5% / 52.2% / 92.2% by channel.
Is #5d85eb a light or a dark color?
It is a mid-tone. Relative luminance is 0.2510 and perceived brightness is 54%, so black text on it reaches 6.02:1.
Should I use black or white text on #5d85eb?
Black. It scores 6.02:1 against #5d85eb, versus 3.49:1 for white — AA at any size.
What is the complementary color of #5d85eb?
#EBC35D sits directly opposite on the wheel. Softer options are the split-complements #EB7C5D and #CCEB5D, which give the same contrast with far less vibration.
What colors go well with #5d85eb?
For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B619B for secondary text, #BA6012 as an accent and #0E2A71 for hover and pressed states. For a palette, the analogous pair #5DCCEB and #7C5DEB stays calm, while #EBC35D is the loudest partner.
What is #5d85eb in CMYK for printing?
cmyk(60%, 43%, 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 #5d85eb warm or cool?
Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #695DEB; nudged cooler, #5B94ED.