#5259e4
a balanced, vivid blue · cool · closest name: Slate Blue
At a glance
Every number on this page in one read: what #5259e4 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 | #5259e4 |
| RGB | rgb(82, 89, 228) |
| HSL | hsl(237, 73%, 61%) |
| CMYK | cmyk(64%, 61%, 0%, 11%) |
| LAB | lab(45.0 39.6 -71.5) |
| LCH | lch(45.0 81.8 299.0) |
| OKLCH | oklch(0.542 0.207 274.9) |
| Decimal | 5396964 |
| Display P3 | color(display-p3 0.322 0.349 0.894) |
Copy-ready code
/* CSS */
color: #5259e4;
background-color: #5259e4;
/* Tailwind (arbitrary) */
class="text-[#5259e4] bg-[#5259e4]"
/* SCSS */
$brand: #5259e4;
/* SwiftUI */
Color(red: 0.322, green: 0.349, blue: 0.894)
/* Android */
Color.parseColor("#5259e4")
/* Flutter */
Color(0xFF5259E4)
/* Python / OpenCV (BGR) */
(228, 89, 82)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. #5259e4 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.
:root {
--brand-50: #F3F3FC;
--brand-100: #E7E8F8;
--brand-200: #C9CBF3;
--brand-300: #9EA2F0;
--brand-400: #6D73E8;
--brand-500: #5259e4;
--brand-600: #212AD4;
--brand-700: #1C23B0;
--brand-800: #161C8D;
--brand-900: #141866;
--brand-950: #0D0F40;
--brand: #5259e4;
--brand-ink: #ffffff;
}Colors that work with #5259e4
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 #5259e4
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠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 | #E4DD52 | Directly opposite — maximum tension | |
| Analogous left | #52A2E4 | Neighbour, quieter | |
| Analogous right | #9452E4 | Neighbour, quieter | |
| Split-complement 1 | #E49452 | Contrast without the clash | |
| Split-complement 2 | #A2E452 | Contrast without the clash | |
| Triadic 1 | #E45259 | Even thirds — balanced and loud | |
| Triadic 2 | #59E452 | Even thirds — balanced and loud | |
| Tetradic | #E452A2 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#5259e4 text on a black background
contrast 3.91:1
#5259e4 text on a white background
contrast 5.37:1
CSS3 live lab
The quick brown fox
color: #5259e4;
background-color: #5259e4;
Glowing headline
text-shadow: 2px 2px 8px #5259e4;
Soft neon halo
text-shadow: 0 0 14px rgba(82, 89, 228, 0.45);
box-shadow: 0 12px 32px -8px rgba(82, 89, 228, 0.45);
border: 3px solid #5259e4; background: linear-gradient(135deg, #5259e4, #AC52E4);
Monochromatic scale
Palettes built from #5259e4
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: Iris (#5a4fcf) — ΔE2000 4.4 away, with its history, psychology and brand usage.
#5259e4 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#5259e4, answered
What color is #5259e4?
#5259e4 is a balanced vivid blue, closest to Slate Blue (ΔE2000 4.7). It sits at 237° on the hue wheel with 73% saturation and 61% lightness, which reads as cool.
What is the RGB value of #5259e4?
rgb(82, 89, 228) — 82 red, 89 green and 228 blue out of 255, or 32.2% / 34.9% / 89.4% by channel.
Is #5259e4 a light or a dark color?
It is a dark color. Relative luminance is 0.1454 and perceived brightness is 44%, so white text on it reaches 5.37:1.
Should I use black or white text on #5259e4?
White. It scores 5.37:1 against #5259e4, versus 3.91:1 for black — AA at any size.
What is the complementary color of #5259e4?
#E4DD52 sits directly opposite on the wheel. Softer options are the split-complements #E49452 and #A2E452, which give the same contrast with far less vibration.
What colors go well with #5259e4?
For interface work: #F4F5FA as the surface, #C0C2ED for borders, #4B4E9B for secondary text, #B58617 as an accent and #11166E for hover and pressed states. For a palette, the analogous pair #52A2E4 and #9452E4 stays calm, while #E4DD52 is the loudest partner.
What is #5259e4 in CMYK for printing?
cmyk(64%, 61%, 0%, 11%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #5259e4 warm or cool?
Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8152E4; nudged cooler, #507BE6.