Skip to content

#406bdf

a balanced, vivid blue · cool · “Royal Blue”

RGB
64, 107, 223
HSL
224°, 71%, 56%
CMYK
71, 52, 0, 13
Luminance
0.1693

At a glance

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

Hex
#406bdf
Hue
224°
blue
Saturation
71%
vivid
Lightness
56%
balanced
Brightness
87%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1693
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
4.79:1
Closest name
Royal Blue
ΔE2000 0.8
Where it sits
Hue224° of 360°
Saturation71%
Lightness56%
Temperature
Warm ← → Cool92% 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#406bdf
RGBrgb(64, 107, 223)
HSLhsl(224, 71%, 56%)
CMYKcmyk(71%, 52%, 0%, 13%)
LABlab(48.2 24.1 -63.6)
LCHlch(48.2 68.0 290.8)
OKLCHoklch(0.562 0.183 265.5)
Decimal4221919
Display P3color(display-p3 0.251 0.420 0.875)

Copy-ready code

/* CSS */
color: #406bdf;
background-color: #406bdf;
/* Tailwind (arbitrary) */
class="text-[#406bdf] bg-[#406bdf]"
/* SCSS */
$brand: #406bdf;
/* SwiftUI */
Color(red: 0.251, green: 0.420, blue: 0.875)
/* Android */
Color.parseColor("#406bdf")
/* Flutter */
Color(0xFF406BDF)
/* Python / OpenCV (BGR) */
(223, 107, 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 #406bdf · 4.79:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.79:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.39:1
AA fail · AA large pass · AAA fail
Reading the other direction: #406bdf as text scores 4.79:1 on white and 4.39:1 on black.

Accessibility — WCAG contrast

Aa
#406bdf on white: 4.79:1
AA ✓ pass · AA-large · AAA
Aa
#406bdf on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1C7AE3
deuteranopia · #006BDD
tritanopia · #00879B

Color scale — 50 to 950

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

#F3F5FC
#E7ECF8
#C9D4F3
#9FB5EF
#6F8FE7
#406bdf
#2352D2
#1D45AF
#17378C
#152B65
#0D1B3F
Base = 500Lightest = 50 · #F3F5FCDarkest = 950 · #0D1B3F
:root {
  --brand-50: #F3F5FC;
  --brand-100: #E7ECF8;
  --brand-200: #C9D4F3;
  --brand-300: #9FB5EF;
  --brand-400: #6F8FE7;
  --brand-500: #406bdf;
  --brand-600: #2352D2;
  --brand-700: #1D45AF;
  --brand-800: #17378C;
  --brand-900: #152B65;
  --brand-950: #0D1B3F;
  --brand: #406bdf;
  --brand-ink: #ffffff;
}

Colors that work with #406bdf

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#F4F6FA
Tinted page background
Border#C0CCED
Hairlines and dividers
Muted text#4B609B
Captions on the surface
Accent#B2631A
Second voice, not a rival
Dark variant#122B6D
Hover, pressed, headers
Light variant#E9EEFB
Selected rows, tints
Dark surface#141824
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 #406bdf

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#DFB440
Analogous left#40BADF
Analogous right#6540DF
Split-complement 1#DF6540
Split-complement 2#BADF40
Triadic 1#DF406B
Triadic 2#6BDF40
Tetradic#DF40BA

RGB percentages

Red25.1%
Green42.0%
Blue87.5%

CMYK percentages

Cyan71.3%
Magenta52.0%
Yellow0.0%
Key (black)12.5%

Color previews

#406bdf text on a black background

contrast 4.39:1

Card sample

#406bdf text on a white background

contrast 4.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #406bdf;
Background color
Panel with #406bdf background
background-color: #406bdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #406bdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 107, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 107, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #406bdf;
background: linear-gradient(135deg, #406bdf, #7F40DF);

Monochromatic scale

Palettes built from #406bdf

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.

#406bdf 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.

#406bdf, answered

What color is #406bdf?

#406bdf is a balanced vivid blue — the CSS keyword Royal Blue. It sits at 224° on the hue wheel with 71% saturation and 56% lightness, which reads as cool.

What is the RGB value of #406bdf?

rgb(64, 107, 223) — 64 red, 107 green and 223 blue out of 255, or 25.1% / 42% / 87.5% by channel.

Is #406bdf a light or a dark color?

It is a dark color. Relative luminance is 0.1693 and perceived brightness is 46%, so white text on it reaches 4.79:1.

Should I use black or white text on #406bdf?

White. It scores 4.79:1 against #406bdf, versus 4.39:1 for black — AA at any size.

What is the complementary color of #406bdf?

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

What colors go well with #406bdf?

For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B609B for secondary text, #B2631A as an accent and #122B6D for hover and pressed states. For a palette, the analogous pair #40BADF and #6540DF stays calm, while #DFB440 is the loudest partner.

What is #406bdf in CMYK for printing?

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

Is #406bdf warm or cool?

Cool — it scores 92 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4F40DF; nudged cooler, #3E7CE1.

Work with #406bdf in the Color Lab