Skip to content

#404eb3

a balanced, vivid blue · cool · closest name: Slate Blue

RGB
64, 78, 179
HSL
233°, 47%, 48%
CMYK
64, 56, 0, 30
Luminance
0.0979

At a glance

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

Hex
#404eb3
Hue
233°
blue
Saturation
47%
vivid
Lightness
48%
balanced
Brightness
70%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0979
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
7.10:1
Closest name
Slate Blue
ΔE2000 8.3
Where it sits
Hue233° of 360°
Saturation47%
Lightness48%
Temperature
Warm ← → Cool87% 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#404eb3
RGBrgb(64, 78, 179)
HSLhsl(233, 47%, 48%)
CMYKcmyk(64%, 56%, 0%, 30%)
LABlab(37.5 27.0 -55.5)
LCHlch(37.5 61.7 295.9)
OKLCHoklch(0.471 0.160 272.7)
Decimal4214451
Display P3color(display-p3 0.251 0.306 0.702)

Copy-ready code

/* CSS */
color: #404eb3;
background-color: #404eb3;
/* Tailwind (arbitrary) */
class="text-[#404eb3] bg-[#404eb3]"
/* SCSS */
$brand: #404eb3;
/* SwiftUI */
Color(red: 0.251, green: 0.306, blue: 0.702)
/* Android */
Color.parseColor("#404eb3")
/* Flutter */
Color(0xFF404EB3)
/* Python / OpenCV (BGR) */
(179, 78, 64)

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 #404eb3 · 7.10:1
Use #ffffffAAA at every size.
Aa
White text · 7.10:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.96:1
AA fail · AA large fail · AAA fail
Reading the other direction: #404eb3 as text scores 7.10:1 on white and 2.96:1 on black.

Accessibility — WCAG contrast

Aa
#404eb3 on white: 7.10:1
AA ✓ pass · AA-large · AAA
Aa
#404eb3 on black: 2.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DB6
deuteranopia · #0053B1
tritanopia · #006679

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #404eb3 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5F5FA
#EAEBF5
#D0D3EC
#ACB3E1
#838DD3
#5A67C4
#404eb3
#364196
#2B3478
#232958
#161A37
Base = 600Lightest = 50 · #F5F5FADarkest = 950 · #161A37
:root {
  --brand-50: #F5F5FA;
  --brand-100: #EAEBF5;
  --brand-200: #D0D3EC;
  --brand-300: #ACB3E1;
  --brand-400: #838DD3;
  --brand-500: #5A67C4;
  --brand-600: #404eb3;
  --brand-700: #364196;
  --brand-800: #2B3478;
  --brand-900: #232958;
  --brand-950: #161A37;
  --brand: #404eb3;
  --brand-ink: #ffffff;
}

Colors that work with #404eb3

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#C3C8E9
Hairlines and dividers
Muted text#4B549B
Captions on the surface
Accent#9A7332
Second voice, not a rival
Dark variant#22295E
Hover, pressed, headers
Light variant#ECEEF8
Selected rows, tints
Dark surface#141624
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 #404eb3

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
  • Text on black or near-black surfaces
  • 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#B3A540
Analogous left#4087B3
Analogous right#6B40B3
Split-complement 1#B36B40
Split-complement 2#87B340
Triadic 1#B3404E
Triadic 2#4EB340
Tetradic#B34087

RGB percentages

Red25.1%
Green30.6%
Blue70.2%

CMYK percentages

Cyan64.2%
Magenta56.4%
Yellow0.0%
Key (black)29.8%

Color previews

#404eb3 text on a black background

contrast 2.96:1

Card sample

#404eb3 text on a white background

contrast 7.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #404eb3;
Background color
Panel with #404eb3 background
background-color: #404eb3;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #404eb3;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 78, 179, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 78, 179, 0.45);
Border & gradient
Gradient panel
border: 3px solid #404eb3;
background: linear-gradient(135deg, #404eb3, #7F40B3);

Monochromatic scale

Palettes built from #404eb3

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.

#404eb3 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

Converts to four-color process without much drama. Proof it anyway.

#404eb3, answered

What color is #404eb3?

#404eb3 is a balanced vivid blue, closest to Slate Blue (ΔE2000 8.3). It sits at 233° on the hue wheel with 47% saturation and 48% lightness, which reads as cool.

What is the RGB value of #404eb3?

rgb(64, 78, 179) — 64 red, 78 green and 179 blue out of 255, or 25.1% / 30.6% / 70.2% by channel.

Is #404eb3 a light or a dark color?

It is a dark color. Relative luminance is 0.0979 and perceived brightness is 36%, so white text on it reaches 7.10:1.

Should I use black or white text on #404eb3?

White. It scores 7.10:1 against #404eb3, versus 2.96:1 for black — AAA at any size.

What is the complementary color of #404eb3?

#B3A540 sits directly opposite on the wheel. Softer options are the split-complements #B36B40 and #87B340, which give the same contrast with far less vibration.

What colors go well with #404eb3?

For interface work: #F4F5FA as the surface, #C3C8E9 for borders, #4B549B for secondary text, #9A7332 as an accent and #22295E for hover and pressed states. For a palette, the analogous pair #4087B3 and #6B40B3 stays calm, while #B3A540 is the loudest partner.

What is #404eb3 in CMYK for printing?

cmyk(64%, 56%, 0%, 30%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #404eb3 warm or cool?

Cool — it scores 87 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5C40B3; nudged cooler, #3E66B5.

Work with #404eb3 in the Color Lab