#403ED9#403ED9

#403ED9 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.8% C 0.227 H 274.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#403ED9
RGBrgb(64, 62, 217)
HSLhsl(241, 67%, 55%)
HSVhsv(241, 71%, 85%)
CMYKcmyk(70.5%, 71.4%, 0%, 14.9%)
CIE-LABlab(37.01, 49.62, -78.39)
CIE-LCHlch(37.01, 92.77, 302.34°)
OKLaboklab(47.8% 0.0165 -0.2267)
OKLCHoklch(47.8% 0.227 274.2)
XYZxyz(16.3572, 9.5434, 66.6122)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403ED9 #D7D93E
analogous
#3E8AD9 #403ED9 #8D3ED9
triadic
#403ED9 #D9403E #3ED940
tetradic
#403ED9 #D93E8A #D7D93E #3ED98D
square
#403ED9 #D93E8A #D7D93E #3ED98D
split-complementary
#403ED9 #D98D3E #8AD93E
monochromatic
#1B1A83 #2624B6 #403ED9 #7371E3 #A5A4ED

Accessibility & contrast

On white

7.22
#403ED9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#403ED9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403ED9
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403ED9#FFFFFF#000000##FFFFFF
##403ED91.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDE
Deuteranopia (green-blind)
#0050D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #403ed9;
/* rgb */ color: rgb(64, 62, 217);
/* oklch */ color: oklch(47.8% 0.227 274.2);
Tailwind
colors: {
  custom: {
    50: '#8a75e6',
    500: '#403ed9',
    950: '#000000',
  },
}
SCSS
$custom: #403ed9;
$custom-light: #8a75e6;
$custom-dark: #000000;
JSON
{
  "hex": "#403ed9",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 217
  },
  "hsl": {
    "h": 240.774,
    "s": 67.1,
    "l": 54.706
  },
  "oklch": {
    "l": 0.478,
    "c": 0.22727,
    "h": 274.2
  },
  "luminance": 0.09545
}

Semantic roles & 50–950 ramp

primary
#403ED9
secondary
#D9DA99
accent
#EA3EE8
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #403ED9

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#403ED9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva