#403FD9#403FD9

#403FD9 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.226 H 274.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#403FD9
RGBrgb(64, 63, 217)
HSLhsl(240, 67%, 55%)
HSVhsv(240, 71%, 85%)
CMYKcmyk(70.5%, 71%, 0%, 14.9%)
CIE-LABlab(37.21, 49.06, -78.05)
CIE-LCHlch(37.21, 92.19, 302.15°)
OKLaboklab(47.94% 0.016 -0.2257)
OKLCHoklch(47.94% 0.226 274)
XYZxyz(16.4121, 9.6532, 66.6305)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FD9 #D8D93F
analogous
#3F8BD9 #403FD9 #8D3FD9
triadic
#403FD9 #D9403F #3FD940
tetradic
#403FD9 #D93F8B #D8D93F #3FD98D
square
#403FD9 #D93F8B #D8D93F #3FD98D
split-complementary
#403FD9 #D98D3F #8BD93F
monochromatic
#1B1A84 #2524B7 #403FD9 #7372E3 #A6A5ED

Accessibility & contrast

On white

7.16
#403FD9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#403FD9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FD9
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FD9#FFFFFF#000000##FFFFFF
##403FD91.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDE
Deuteranopia (green-blind)
#0050D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #403fd9;
/* rgb */ color: rgb(64, 63, 217);
/* oklch */ color: oklch(47.9% 0.226 274.0);
Tailwind
colors: {
  custom: {
    50: '#8a75e6',
    500: '#403fd9',
    950: '#000000',
  },
}
SCSS
$custom: #403fd9;
$custom-light: #8a75e6;
$custom-dark: #000000;
JSON
{
  "hex": "#403fd9",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 217
  },
  "hsl": {
    "h": 240.39,
    "s": 66.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.47944,
    "c": 0.22626,
    "h": 274
  },
  "luminance": 0.09655
}

Semantic roles & 50–950 ramp

primary
#403FD9
secondary
#DADA9A
accent
#EA3EE9
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #403FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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