#403ED6#403ED6

#403ED6 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.5% C 0.224 H 274.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#403ED6
RGBrgb(64, 62, 214)
HSLhsl(241, 65%, 54%)
HSVhsv(241, 71%, 84%)
CMYKcmyk(70.1%, 71%, 0%, 16.1%)
CIE-LABlab(36.72, 48.66, -77.13)
CIE-LCHlch(36.72, 91.20, 302.24°)
OKLaboklab(47.51% 0.017 -0.223)
OKLCHoklch(47.51% 0.224 274.4)
XYZxyz(15.9705, 9.3887, 64.5758)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403ED6 #D4D63E
analogous
#3E88D6 #403ED6 #8C3ED6
triadic
#403ED6 #D6403E #3ED640
tetradic
#403ED6 #D63E88 #D4D63E #3ED68C
square
#403ED6 #D63E88 #D4D63E #3ED68C
split-complementary
#403ED6 #D68C3E #88D63E
monochromatic
#1C1B7F #2726B1 #403ED6 #7270E1 #A4A3EB

Accessibility & contrast

On white

7.30
#403ED6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#403ED6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403ED6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403ED6#FFFFFF#000000##FFFFFF
##403ED61.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDB
Deuteranopia (green-blind)
#004FD3
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #403ed6;
/* rgb */ color: rgb(64, 62, 214);
/* oklch */ color: oklch(47.5% 0.224 274.4);
Tailwind
colors: {
  custom: {
    50: '#8975e4',
    500: '#403ed6',
    950: '#000000',
  },
}
SCSS
$custom: #403ed6;
$custom-light: #8975e4;
$custom-dark: #000000;
JSON
{
  "hex": "#403ed6",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 214
  },
  "hsl": {
    "h": 240.789,
    "s": 64.957,
    "l": 54.118
  },
  "oklch": {
    "l": 0.47507,
    "c": 0.22367,
    "h": 274.4
  },
  "luminance": 0.0939
}

Semantic roles & 50–950 ramp

primary
#403ED6
secondary
#D7D898
accent
#E840E6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #403ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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