Skip to content

#3958eb

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

RGB
57, 88, 235
HSL
230°, 82%, 57%
CMYK
76, 63, 0, 8
Luminance
0.1385

At a glance

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

Hex
#3958eb
Hue
230°
blue
Saturation
82%
electric
Lightness
57%
balanced
Brightness
92%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1385
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Electric
Best ink
White
5.57:1
Closest name
Royal Blue
ΔE2000 5.6
Where it sits
Hue230° of 360°
Saturation82%
Lightness57%
Temperature
Warm ← → Cool89% 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#3958eb
RGBrgb(57, 88, 235)
HSLhsl(230, 82%, 57%)
CMYKcmyk(76%, 63%, 0%, 8%)
LABlab(44.0 39.6 -77.2)
LCHlch(44.0 86.7 297.1)
OKLCHoklch(0.533 0.223 268.3)
Decimal3758315
Display P3color(display-p3 0.224 0.345 0.922)

Copy-ready code

/* CSS */
color: #3958eb;
background-color: #3958eb;
/* Tailwind (arbitrary) */
class="text-[#3958eb] bg-[#3958eb]"
/* SCSS */
$brand: #3958eb;
/* SwiftUI */
Color(red: 0.224, green: 0.345, blue: 0.922)
/* Android */
Color.parseColor("#3958eb")
/* Flutter */
Color(0xFF3958EB)
/* Python / OpenCV (BGR) */
(235, 88, 57)

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#ffffff on #3958eb · 5.57:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.57:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.77:1
AA fail · AA large pass · AAA fail
Reading the other direction: #3958eb as text scores 5.57:1 on white and 3.77:1 on black.

Accessibility — WCAG contrast

Aa
#3958eb on white: 5.57:1
AA ✓ pass · AA-large · AAA
Aa
#3958eb on black: 3.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0071F0
deuteranopia · #0060E8
tritanopia · #007E99

Color scale — 50 to 950

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

#F2F4FC
#E6E9F9
#C6CEF6
#99A9F5
#667EF0
#3958eb
#1639DE
#1330B9
#0F2694
#0F1F6B
#091343
Base = 500Lightest = 50 · #F2F4FCDarkest = 950 · #091343
:root {
  --brand-50: #F2F4FC;
  --brand-100: #E6E9F9;
  --brand-200: #C6CEF6;
  --brand-300: #99A9F5;
  --brand-400: #667EF0;
  --brand-500: #3958eb;
  --brand-600: #1639DE;
  --brand-700: #1330B9;
  --brand-800: #0F2694;
  --brand-900: #0F1F6B;
  --brand-950: #091343;
  --brand: #3958eb;
  --brand-ink: #ffffff;
}

Colors that work with #3958eb

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F5FA
Tinted page background
Border#C0C8ED
Hairlines and dividers
Muted text#4B599B
Captions on the surface
Accent#BD730F
Second voice, not a rival
Dark variant#0C1E74
Hover, pressed, headers
Light variant#E8EBFD
Selected rows, tints
Dark surface#141724
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 #3958eb

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#EBCC39
Analogous left#39B1EB
Analogous right#7339EB
Split-complement 1#EB7339
Split-complement 2#B1EB39
Triadic 1#EB3958
Triadic 2#58EB39
Tetradic#EB39B1

RGB percentages

Red22.4%
Green34.5%
Blue92.2%

CMYK percentages

Cyan75.7%
Magenta62.6%
Yellow0.0%
Key (black)7.8%

Color previews

#3958eb text on a black background

contrast 3.77:1

Card sample

#3958eb text on a white background

contrast 5.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3958eb;
Background color
Panel with #3958eb background
background-color: #3958eb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #3958eb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(57, 88, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(57, 88, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3958eb;
background: linear-gradient(135deg, #3958eb, #9139EB);

Monochromatic scale

Palettes built from #3958eb

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.

#3958eb 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.

#3958eb, answered

What color is #3958eb?

#3958eb is a balanced electric blue, closest to Royal Blue (ΔE2000 5.6). It sits at 230° on the hue wheel with 82% saturation and 57% lightness, which reads as cool.

What is the RGB value of #3958eb?

rgb(57, 88, 235) — 57 red, 88 green and 235 blue out of 255, or 22.4% / 34.5% / 92.2% by channel.

Is #3958eb a light or a dark color?

It is a dark color. Relative luminance is 0.1385 and perceived brightness is 43%, so white text on it reaches 5.57:1.

Should I use black or white text on #3958eb?

White. It scores 5.57:1 against #3958eb, versus 3.77:1 for black — AA at any size.

What is the complementary color of #3958eb?

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

What colors go well with #3958eb?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B599B for secondary text, #BD730F as an accent and #0C1E74 for hover and pressed states. For a palette, the analogous pair #39B1EB and #7339EB stays calm, while #EBCC39 is the loudest partner.

What is #3958eb in CMYK for printing?

cmyk(76%, 63%, 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 #3958eb warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5C39EB; nudged cooler, #3773ED.

Work with #3958eb in the Color Lab