Skip to content

#403af5

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

RGB
64, 58, 245
HSL
242°, 90%, 59%
CMYK
74, 76, 0, 4
Luminance
0.1071

At a glance

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

Hex
#403af5
Hue
242°
blue
Saturation
90%
electric
Lightness
59%
balanced
Brightness
96%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1071
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.68:1
Closest name
Blue
ΔE2000 7
Where it sits
Hue242° of 360°
Saturation90%
Lightness59%
Temperature
Warm ← → Cool82% 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#403af5
RGBrgb(64, 58, 245)
HSLhsl(242, 90%, 59%)
CMYKcmyk(74%, 76%, 0%, 4%)
LABlab(39.1 60.5 -90.9)
LCHlch(39.1 109.2 303.6)
OKLCHoklch(0.501 0.263 272.9)
Decimal4209397
Display P3color(display-p3 0.251 0.227 0.961)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#403af5 on white: 6.68:1
AA ✓ pass · AA-large · AAA
Aa
#403af5 on black: 3.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065FA
deuteranopia · #0053F2
tritanopia · #007396

Color scale — 50 to 950

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

#F2F2FD
#E5E5FB
#C5C3F8
#9794FA
#645FF7
#403af5
#130CE9
#100AC2
#0D089B
#0E0A70
#080646
Base = 500Lightest = 50 · #F2F2FDDarkest = 950 · #080646
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E5E5FB;
  --brand-200: #C5C3F8;
  --brand-300: #9794FA;
  --brand-400: #645FF7;
  --brand-500: #403af5;
  --brand-600: #130CE9;
  --brand-700: #100AC2;
  --brand-800: #0D089B;
  --brand-900: #0E0A70;
  --brand-950: #080646;
  --brand: #403af5;
  --brand-ink: #ffffff;
}

Colors that work with #403af5

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#F4F4FA
Tinted page background
Border#C1C0ED
Hairlines and dividers
Muted text#4D4B9B
Captions on the surface
Accent#C69C06
Second voice, not a rival
Dark variant#0A0679
Hover, pressed, headers
Light variant#E7E7FE
Selected rows, tints
Dark surface#141424
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 #403af5

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#EFF53A
Analogous left#3A92F5
Analogous right#9D3AF5
Split-complement 1#F59D3A
Split-complement 2#92F53A
Triadic 1#F5403A
Triadic 2#3AF540
Tetradic#F53A92

RGB percentages

Red25.1%
Green22.7%
Blue96.1%

CMYK percentages

Cyan73.9%
Magenta76.3%
Yellow0.0%
Key (black)3.9%

Color previews

#403af5 text on a black background

contrast 3.14:1

Card sample

#403af5 text on a white background

contrast 6.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #403af5;
Background color
Panel with #403af5 background
background-color: #403af5;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #403af5;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 58, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 58, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #403af5;
background: linear-gradient(135deg, #403af5, #BD3AF5);

Monochromatic scale

Palettes built from #403af5

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.

#403af5 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.

#403af5, answered

What color is #403af5?

#403af5 is a balanced electric blue, closest to Blue (ΔE2000 7). It sits at 242° on the hue wheel with 90% saturation and 59% lightness, which reads as cool.

What is the RGB value of #403af5?

rgb(64, 58, 245) — 64 red, 58 green and 245 blue out of 255, or 25.1% / 22.7% / 96.1% by channel.

Is #403af5 a light or a dark color?

It is a dark color. Relative luminance is 0.1071 and perceived brightness is 39%, so white text on it reaches 6.68:1.

Should I use black or white text on #403af5?

White. It scores 6.68:1 against #403af5, versus 3.14:1 for black — AA at any size.

What is the complementary color of #403af5?

#EFF53A sits directly opposite on the wheel. Softer options are the split-complements #F59D3A and #92F53A, which give the same contrast with far less vibration.

What colors go well with #403af5?

For interface work: #F4F4FA as the surface, #C1C0ED for borders, #4D4B9B for secondary text, #C69C06 as an accent and #0A0679 for hover and pressed states. For a palette, the analogous pair #3A92F5 and #9D3AF5 stays calm, while #EFF53A is the loudest partner.

What is #403af5 in CMYK for printing?

cmyk(74%, 76%, 0%, 4%). 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 #403af5 warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #843AF5; nudged cooler, #3863F7.

Work with #403af5 in the Color Lab