#403ED7#403ED7

#403ED7 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.6% C 0.225 H 274.3°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#403ED7
RGBrgb(64, 62, 215)
HSLhsl(241, 66%, 54%)
HSVhsv(241, 71%, 84%)
CMYKcmyk(70.2%, 71.2%, 0%, 15.7%)
CIE-LABlab(36.82, 48.98, -77.55)
CIE-LCHlch(36.82, 91.72, 302.27°)
OKLaboklab(47.61% 0.0168 -0.2242)
OKLCHoklch(47.61% 0.225 274.3)
XYZxyz(16.0986, 9.4400, 65.2505)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403ED7 #D5D73E
analogous
#3E89D7 #403ED7 #8C3ED7
triadic
#403ED7 #D7403E #3ED740
tetradic
#403ED7 #D73E89 #D5D73E #3ED78C
square
#403ED7 #D73E89 #D5D73E #3ED78C
split-complementary
#403ED7 #D78C3E #89D73E
monochromatic
#1C1B80 #2725B3 #403ED7 #7271E2 #A4A3EC

Accessibility & contrast

On white

7.27
#403ED7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#403ED7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403ED7
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403ED7#FFFFFF#000000##FFFFFF
##403ED71.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDC
Deuteranopia (green-blind)
#004FD4
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #403ed7;
/* rgb */ color: rgb(64, 62, 215);
/* oklch */ color: oklch(47.6% 0.225 274.3);
Tailwind
colors: {
  custom: {
    50: '#8a75e5',
    500: '#403ed7',
    950: '#000000',
  },
}
SCSS
$custom: #403ed7;
$custom-light: #8a75e5;
$custom-dark: #000000;
JSON
{
  "hex": "#403ed7",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 215
  },
  "hsl": {
    "h": 240.784,
    "s": 65.665,
    "l": 54.314
  },
  "oklch": {
    "l": 0.47605,
    "c": 0.22487,
    "h": 274.3
  },
  "luminance": 0.09442
}

Semantic roles & 50–950 ramp

primary
#403ED7
secondary
#D8D998
accent
#E93FE6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #403ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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