#403FD7#403FD7

#403FD7 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.224 H 274.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#403FD7
RGBrgb(64, 63, 215)
HSLhsl(240, 66%, 55%)
HSVhsv(240, 71%, 84%)
CMYKcmyk(70.2%, 70.7%, 0%, 15.7%)
CIE-LABlab(37.02, 48.41, -77.22)
CIE-LCHlch(37.02, 91.14, 302.09°)
OKLaboklab(47.75% 0.0163 -0.2233)
OKLCHoklch(47.75% 0.224 274.2)
XYZxyz(16.1535, 9.5497, 65.2688)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FD7 #D6D73F
analogous
#3F8AD7 #403FD7 #8C3FD7
triadic
#403FD7 #D7403F #3FD740
tetradic
#403FD7 #D73F8A #D6D73F #3FD78C
square
#403FD7 #D73F8A #D6D73F #3FD78C
split-complementary
#403FD7 #D78C3F #8AD73F
monochromatic
#1B1B81 #2625B3 #403FD7 #7272E2 #A5A4EC

Accessibility & contrast

On white

7.22
#403FD7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#403FD7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FD7
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FD7#FFFFFF#000000##FFFFFF
##403FD71.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDC
Deuteranopia (green-blind)
#0050D4
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #403fd7;
/* rgb */ color: rgb(64, 63, 215);
/* oklch */ color: oklch(47.8% 0.224 274.2);
Tailwind
colors: {
  custom: {
    50: '#8a75e5',
    500: '#403fd7',
    950: '#000000',
  },
}
SCSS
$custom: #403fd7;
$custom-light: #8a75e5;
$custom-dark: #000000;
JSON
{
  "hex": "#403fd7",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 215
  },
  "hsl": {
    "h": 240.395,
    "s": 65.517,
    "l": 54.51
  },
  "oklch": {
    "l": 0.47751,
    "c": 0.22385,
    "h": 274.2
  },
  "luminance": 0.09551
}

Semantic roles & 50–950 ramp

primary
#403FD7
secondary
#D9D999
accent
#E83FE7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #403FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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