#403EC8#403EC8

#403EC8 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.2% C 0.207 H 275.3°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#403EC8
RGBrgb(64, 62, 200)
HSLhsl(241, 56%, 51%)
HSVhsv(241, 69%, 78%)
CMYKcmyk(68%, 69%, 0%, 21.6%)
CIE-LABlab(35.41, 44.09, -71.19)
CIE-LCHlch(35.41, 83.73, 301.77°)
OKLaboklab(46.17% 0.0191 -0.2056)
OKLCHoklch(46.17% 0.207 275.3)
XYZxyz(14.2589, 8.7041, 55.5610)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EC8 #C6C83E
analogous
#3E81C8 #403EC8 #853EC8
triadic
#403EC8 #C8403E #3EC840
tetradic
#403EC8 #C83E81 #C6C83E #3EC885
square
#403EC8 #C83E81 #C6C83E #3EC885
split-complementary
#403EC8 #C8853E #81C83E
monochromatic
#201F6D #2E2D9C #403EC8 #6F6ED6 #9E9DE3

Accessibility & contrast

On white

7.66
#403EC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#403EC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EC8
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EC8#FFFFFF#000000##FFFFFF
##403EC81.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#004DC5
Tritanopia (blue-blind)
#00637E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #403ec8;
/* rgb */ color: rgb(64, 62, 200);
/* oklch */ color: oklch(46.2% 0.207 275.3);
Tailwind
colors: {
  custom: {
    50: '#8774da',
    500: '#403ec8',
    950: '#000000',
  },
}
SCSS
$custom: #403ec8;
$custom-light: #8774da;
$custom-dark: #000000;
JSON
{
  "hex": "#403ec8",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 200
  },
  "hsl": {
    "h": 240.87,
    "s": 55.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.46167,
    "c": 0.20653,
    "h": 275.3
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#403EC8
secondary
#CECF92
accent
#DF49DD
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #403EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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