#3947eb
a balanced, electric blue · cool · closest name: Slate Blue
At a glance
Every number on this page in one read: what #3947eb 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 | #3947eb |
| RGB | rgb(57, 71, 235) |
| HSL | hsl(235, 82%, 57%) |
| CMYK | cmyk(76%, 70%, 0%, 8%) |
| LAB | lab(40.2 49.8 -83.4) |
| LCH | lch(40.2 97.1 300.8) |
| OKLCH | oklch(0.505 0.241 270.5) |
| Decimal | 3753963 |
| Display P3 | color(display-p3 0.224 0.278 0.922) |
Copy-ready code
/* CSS */
color: #3947eb;
background-color: #3947eb;
/* Tailwind (arbitrary) */
class="text-[#3947eb] bg-[#3947eb]"
/* SCSS */
$brand: #3947eb;
/* SwiftUI */
Color(red: 0.224, green: 0.278, blue: 0.922)
/* Android */
Color.parseColor("#3947eb")
/* Flutter */
Color(0xFF3947EB)
/* Python / OpenCV (BGR) */
(235, 71, 57)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. #3947eb 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: #F2F3FC;
--brand-100: #E6E7F9;
--brand-200: #C6CAF6;
--brand-300: #99A0F5;
--brand-400: #6671F0;
--brand-500: #3947eb;
--brand-600: #1626DE;
--brand-700: #1320B9;
--brand-800: #0F1994;
--brand-900: #0F166B;
--brand-950: #090E43;
--brand: #3947eb;
--brand-ink: #ffffff;
}Colors that work with #3947eb
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 #3947eb
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 | #EBDD39 | Directly opposite — maximum tension | |
| Analogous left | #39A0EB | Neighbour, quieter | |
| Analogous right | #8439EB | Neighbour, quieter | |
| Split-complement 1 | #EB8439 | Contrast without the clash | |
| Split-complement 2 | #A0EB39 | Contrast without the clash | |
| Triadic 1 | #EB3947 | Even thirds — balanced and loud | |
| Triadic 2 | #47EB39 | Even thirds — balanced and loud | |
| Tetradic | #EB39A0 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#3947eb text on a black background
contrast 3.27:1
#3947eb text on a white background
contrast 6.41:1
CSS3 live lab
The quick brown fox
color: #3947eb;
background-color: #3947eb;
Glowing headline
text-shadow: 2px 2px 8px #3947eb;
Soft neon halo
text-shadow: 0 0 14px rgba(57, 71, 235, 0.45);
box-shadow: 0 12px 32px -8px rgba(57, 71, 235, 0.45);
border: 3px solid #3947eb; background: linear-gradient(135deg, #3947eb, #A239EB);
Monochromatic scale
Palettes built from #3947eb
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.8 away, with its history, psychology and brand usage.
#3947eb 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.
#3947eb, answered
What color is #3947eb?
#3947eb is a balanced electric blue, closest to Slate Blue (ΔE2000 8.1). It sits at 235° on the hue wheel with 82% saturation and 57% lightness, which reads as cool.
What is the RGB value of #3947eb?
rgb(57, 71, 235) — 57 red, 71 green and 235 blue out of 255, or 22.4% / 27.8% / 92.2% by channel.
Is #3947eb a light or a dark color?
It is a dark color. Relative luminance is 0.1137 and perceived brightness is 40%, so white text on it reaches 6.41:1.
Should I use black or white text on #3947eb?
White. It scores 6.41:1 against #3947eb, versus 3.27:1 for black — AA at any size.
What is the complementary color of #3947eb?
#EBDD39 sits directly opposite on the wheel. Softer options are the split-complements #EB8439 and #A0EB39, which give the same contrast with far less vibration.
What colors go well with #3947eb?
For interface work: #F4F5FA as the surface, #C0C3ED for borders, #4B519B for secondary text, #BD840F as an accent and #0C1474 for hover and pressed states. For a palette, the analogous pair #39A0EB and #8439EB stays calm, while #EBDD39 is the loudest partner.
What is #3947eb in CMYK for printing?
cmyk(76%, 70%, 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 #3947eb warm or cool?
Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6C39EB; nudged cooler, #376BED.