#403EC5#403EC5

#403EC5 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 45.9% C 0.203 H 275.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#403EC5
RGBrgb(64, 62, 197)
HSLhsl(241, 54%, 51%)
HSVhsv(241, 69%, 77%)
CMYKcmyk(67.5%, 68.5%, 0%, 22.7%)
CIE-LABlab(35.13, 43.10, -69.89)
CIE-LCHlch(35.13, 82.11, 301.66°)
OKLaboklab(45.89% 0.0195 -0.2018)
OKLCHoklch(45.89% 0.203 275.5)
XYZxyz(13.9117, 8.5652, 53.7326)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EC5 #C3C53E
analogous
#3E7FC5 #403EC5 #833EC5
triadic
#403EC5 #C5403E #3EC540
tetradic
#403EC5 #C53E7F #C3C53E #3EC583
square
#403EC5 #C53E7F #C3C53E #3EC583
split-complementary
#403EC5 #C5833E #7FC53E
monochromatic
#212069 #2F2E98 #403EC5 #6F6DD3 #9D9CE1

Accessibility & contrast

On white

7.74
#403EC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#403EC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EC5
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EC5#FFFFFF#000000##FFFFFF
##403EC51.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#004CC2
Tritanopia (blue-blind)
#00627C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #403ec5;
/* rgb */ color: rgb(64, 62, 197);
/* oklch */ color: oklch(45.9% 0.203 275.5);
Tailwind
colors: {
  custom: {
    50: '#8674d8',
    500: '#403ec5',
    950: '#000000',
  },
}
SCSS
$custom: #403ec5;
$custom-light: #8674d8;
$custom-dark: #000000;
JSON
{
  "hex": "#403ec5",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 240.889,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.45886,
    "c": 0.20279,
    "h": 275.5
  },
  "luminance": 0.08566
}

Semantic roles & 50–950 ramp

primary
#403EC5
secondary
#CCCD91
accent
#DD4BDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #403EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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