#403FC7#403FC7

#403FC7 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.2% C 0.204 H 275.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#403FC7
RGBrgb(64, 63, 199)
HSLhsl(240, 55%, 51%)
HSVhsv(240, 68%, 78%)
CMYKcmyk(67.8%, 68.3%, 0%, 22%)
CIE-LABlab(35.53, 43.17, -70.40)
CIE-LCHlch(35.53, 82.58, 301.52°)
OKLaboklab(46.23% 0.0185 -0.2033)
OKLCHoklch(46.23% 0.204 275.2)
XYZxyz(14.1973, 8.7672, 54.9658)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FC7 #C6C73F
analogous
#3F82C7 #403FC7 #843FC7
triadic
#403FC7 #C7403F #3FC740
tetradic
#403FC7 #C73F82 #C6C73F #3FC784
square
#403FC7 #C73F82 #C6C73F #3FC784
split-complementary
#403FC7 #C7843F #82C73F
monochromatic
#20206C #2E2D9B #403FC7 #6F6ED5 #9E9EE3

Accessibility & contrast

On white

7.63
#403FC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#403FC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FC7
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FC7#FFFFFF#000000##FFFFFF
##403FC71.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#004DC4
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #403fc7;
/* rgb */ color: rgb(64, 63, 199);
/* oklch */ color: oklch(46.2% 0.204 275.2);
Tailwind
colors: {
  custom: {
    50: '#8675d9',
    500: '#403fc7',
    950: '#000000',
  },
}
SCSS
$custom: #403fc7;
$custom-light: #8675d9;
$custom-dark: #000000;
JSON
{
  "hex": "#403fc7",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 199
  },
  "hsl": {
    "h": 240.441,
    "s": 54.839,
    "l": 51.373
  },
  "oklch": {
    "l": 0.46229,
    "c": 0.20419,
    "h": 275.2
  },
  "luminance": 0.08769
}

Semantic roles & 50–950 ramp

primary
#403FC7
secondary
#CECF93
accent
#DE4ADD
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #403FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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