#403ED5#403ED5

#403ED5 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.4% C 0.222 H 274.4°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#403ED5
RGBrgb(64, 62, 213)
HSLhsl(241, 64%, 54%)
HSVhsv(241, 71%, 84%)
CMYKcmyk(70%, 70.9%, 0%, 16.5%)
CIE-LABlab(36.63, 48.33, -76.72)
CIE-LCHlch(36.63, 90.67, 302.21°)
OKLaboklab(47.41% 0.0171 -0.2218)
OKLCHoklch(47.41% 0.222 274.4)
XYZxyz(15.8432, 9.3378, 63.9053)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403ED5 #D3D53E
analogous
#3E88D5 #403ED5 #8C3ED5
triadic
#403ED5 #D5403E #3ED540
tetradic
#403ED5 #D53E88 #D3D53E #3ED58C
square
#403ED5 #D53E88 #D3D53E #3ED58C
split-complementary
#403ED5 #D58C3E #88D53E
monochromatic
#1D1B7D #2826B0 #403ED5 #7270E0 #A3A3EB

Accessibility & contrast

On white

7.32
#403ED5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#403ED5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403ED5
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403ED5#FFFFFF#000000##FFFFFF
##403ED51.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD9
Deuteranopia (green-blind)
#004FD2
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #403ed5;
/* rgb */ color: rgb(64, 62, 213);
/* oklch */ color: oklch(47.4% 0.222 274.4);
Tailwind
colors: {
  custom: {
    50: '#8975e3',
    500: '#403ed5',
    950: '#000000',
  },
}
SCSS
$custom: #403ed5;
$custom-light: #8975e3;
$custom-dark: #000000;
JSON
{
  "hex": "#403ed5",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 213
  },
  "hsl": {
    "h": 240.795,
    "s": 64.255,
    "l": 53.922
  },
  "oklch": {
    "l": 0.4741,
    "c": 0.22246,
    "h": 274.4
  },
  "luminance": 0.09339
}

Semantic roles & 50–950 ramp

primary
#403ED5
secondary
#D7D897
accent
#E741E5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #403ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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