#403FC5#403FC5

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

Color values

HEX#403FC5
RGBrgb(64, 63, 197)
HSLhsl(240, 54%, 51%)
HSVhsv(240, 68%, 77%)
CMYKcmyk(67.5%, 68%, 0%, 22.7%)
CIE-LABlab(35.35, 42.51, -69.53)
CIE-LCHlch(35.35, 81.49, 301.44°)
OKLaboklab(46.04% 0.0188 -0.2008)
OKLCHoklch(46.04% 0.202 275.3)
XYZxyz(13.9666, 8.6750, 53.7509)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FC5 #C4C53F
analogous
#3F81C5 #403FC5 #833FC5
triadic
#403FC5 #C5403F #3FC540
tetradic
#403FC5 #C53F81 #C4C53F #3FC583
square
#403FC5 #C53F81 #C4C53F #3FC583
split-complementary
#403FC5 #C5833F #81C53F
monochromatic
#20206A #2F2E99 #403FC5 #6F6ED3 #9E9DE1

Accessibility & contrast

On white

7.68
#403FC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403FC5
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FC5#FFFFFF#000000##FFFFFF
##403FC51.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #403fc5;
/* rgb */ color: rgb(64, 63, 197);
/* oklch */ color: oklch(46.0% 0.202 275.3);
Tailwind
colors: {
  custom: {
    50: '#8675d8',
    500: '#403fc5',
    950: '#000000',
  },
}
SCSS
$custom: #403fc5;
$custom-light: #8675d8;
$custom-dark: #000000;
JSON
{
  "hex": "#403fc5",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 197
  },
  "hsl": {
    "h": 240.448,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46043,
    "c": 0.20169,
    "h": 275.3
  },
  "luminance": 0.08676
}

Semantic roles & 50–950 ramp

primary
#403FC5
secondary
#CDCE92
accent
#DD4BDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #403FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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