#403FD8#403FD8

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

Color values

HEX#403FD8
RGBrgb(64, 63, 216)
HSLhsl(240, 66%, 55%)
HSVhsv(240, 71%, 85%)
CMYKcmyk(70.4%, 70.8%, 0%, 15.3%)
CIE-LABlab(37.12, 48.74, -77.64)
CIE-LCHlch(37.12, 91.67, 302.12°)
OKLaboklab(47.85% 0.0161 -0.2245)
OKLCHoklch(47.85% 0.225 274.1)
XYZxyz(16.2824, 9.6013, 65.9476)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FD8 #D7D83F
analogous
#3F8BD8 #403FD8 #8C3FD8
triadic
#403FD8 #D8403F #3FD840
tetradic
#403FD8 #D83F8B #D7D83F #3FD88C
square
#403FD8 #D83F8B #D7D83F #3FD88C
split-complementary
#403FD8 #D88C3F #8BD83F
monochromatic
#1B1A82 #2625B5 #403FD8 #7372E2 #A5A5ED

Accessibility & contrast

On white

7.19
#403FD8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#403FD8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FD8
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FD8#FFFFFF#000000##FFFFFF
##403FD81.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDD
Deuteranopia (green-blind)
#0050D5
Tritanopia (blue-blind)
#006A87
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #403fd8;
/* rgb */ color: rgb(64, 63, 216);
/* oklch */ color: oklch(47.8% 0.225 274.1);
Tailwind
colors: {
  custom: {
    50: '#8a75e5',
    500: '#403fd8',
    950: '#000000',
  },
}
SCSS
$custom: #403fd8;
$custom-light: #8a75e5;
$custom-dark: #000000;
JSON
{
  "hex": "#403fd8",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 216
  },
  "hsl": {
    "h": 240.392,
    "s": 66.234,
    "l": 54.706
  },
  "oklch": {
    "l": 0.47847,
    "c": 0.22506,
    "h": 274.1
  },
  "luminance": 0.09603
}

Semantic roles & 50–950 ramp

primary
#403FD8
secondary
#D9DA99
accent
#E93FE8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #403FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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