Skip to content

#398ee5

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

RGB
57, 142, 229
HSL
210°, 77%, 56%
CMYK
75, 38, 0, 10
Luminance
0.2587

At a glance

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

Hex
#398ee5
Hue
210°
blue
Saturation
77%
electric
Lightness
56%
balanced
Brightness
90%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2587
WCAG relative
Temperature
Cool
100/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.17:1
Closest name
Dodger Blue
ΔE2000 2.2
Where it sits
Hue210° of 360°
Saturation77%
Lightness56%
Temperature
Warm ← → Cool100% 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#398ee5
RGBrgb(57, 142, 229)
HSLhsl(210, 77%, 56%)
CMYKcmyk(75%, 38%, 0%, 10%)
LABlab(57.9 3.9 -51.3)
LCHlch(57.9 51.5 274.3)
OKLCHoklch(0.637 0.154 252.0)
Decimal3772133
Display P3color(display-p3 0.224 0.557 0.898)

Copy-ready code

/* CSS */
color: #398ee5;
background-color: #398ee5;
/* Tailwind (arbitrary) */
class="text-[#398ee5] bg-[#398ee5]"
/* SCSS */
$brand: #398ee5;
/* SwiftUI */
Color(red: 0.224, green: 0.557, blue: 0.898)
/* Android */
Color.parseColor("#398ee5")
/* Flutter */
Color(0xFF398EE5)
/* Python / OpenCV (BGR) */
(229, 142, 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#000000 on #398ee5 · 6.17:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.40:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.17:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #398ee5 as text scores 3.40:1 on white and 6.17:1 on black.

Accessibility — WCAG contrast

Aa
#398ee5 on white: 3.40:1
AA ✗ fail · AA-large · AAA
Aa
#398ee5 on black: 6.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6594E9
deuteranopia · #4A84E3
tritanopia · #00A3AE

Color scale — 50 to 950

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

#F3F7FC
#E7F0F9
#C7DEF4
#9CC6F2
#6AAAEB
#398ee5
#1C79D8
#1865B4
#135190
#123D68
#0B2641
Base = 500Lightest = 50 · #F3F7FCDarkest = 950 · #0B2641
:root {
  --brand-50: #F3F7FC;
  --brand-100: #E7F0F9;
  --brand-200: #C7DEF4;
  --brand-300: #9CC6F2;
  --brand-400: #6AAAEB;
  --brand-500: #398ee5;
  --brand-600: #1C79D8;
  --brand-700: #1865B4;
  --brand-800: #135190;
  --brand-900: #123D68;
  --brand-950: #0B2641;
  --brand: #398ee5;
  --brand-ink: #000000;
}

Colors that work with #398ee5

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#C0D6ED
Hairlines and dividers
Muted text#4B729B
Captions on the surface
Accent#EA6335
Second voice, not a rival
Dark variant#0F3F71
Hover, pressed, headers
Light variant#E8F2FC
Selected rows, tints
Dark surface#141C24
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 #398ee5

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#E59039
Analogous left#39E4E5
Analogous right#3A39E5
Split-complement 1#E53A39
Split-complement 2#E4E539
Triadic 1#E5398E
Triadic 2#8EE539
Tetradic#E539E4

RGB percentages

Red22.4%
Green55.7%
Blue89.8%

CMYK percentages

Cyan75.1%
Magenta38.0%
Yellow0.0%
Key (black)10.2%

Color previews

#398ee5 text on a black background

contrast 6.17:1

Card sample

#398ee5 text on a white background

contrast 3.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #398ee5;
Background color
Panel with #398ee5 background
background-color: #398ee5;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #398ee5;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(57, 142, 229, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(57, 142, 229, 0.45);
Border & gradient
Gradient panel
border: 3px solid #398ee5;
background: linear-gradient(135deg, #398ee5, #5739E5);

Monochromatic scale

Palettes built from #398ee5

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.

#398ee5 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.

#398ee5, answered

What color is #398ee5?

#398ee5 is a balanced electric blue, closest to Dodger Blue (ΔE2000 2.2). It sits at 210° on the hue wheel with 77% saturation and 56% lightness, which reads as cool.

What is the RGB value of #398ee5?

rgb(57, 142, 229) — 57 red, 142 green and 229 blue out of 255, or 22.4% / 55.7% / 89.8% by channel.

Is #398ee5 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2587 and perceived brightness is 54%, so black text on it reaches 6.17:1.

Should I use black or white text on #398ee5?

Black. It scores 6.17:1 against #398ee5, versus 3.40:1 for white — AA at any size.

What is the complementary color of #398ee5?

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

What colors go well with #398ee5?

For interface work: #F4F7FA as the surface, #C0D6ED for borders, #4B729B for secondary text, #EA6335 as an accent and #0F3F71 for hover and pressed states. For a palette, the analogous pair #39E4E5 and #3A39E5 stays calm, while #E59039 is the loudest partner.

What is #398ee5 in CMYK for printing?

cmyk(75%, 38%, 0%, 10%). 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 #398ee5 warm or cool?

Cool — it scores 100 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #394FE5; nudged cooler, #207FE5.

Work with #398ee5 in the Color Lab