#403FD2#403FD2

#403FD2 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.3% C 0.218 H 274.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#403FD2
RGBrgb(64, 63, 210)
HSLhsl(240, 62%, 54%)
HSVhsv(240, 70%, 82%)
CMYKcmyk(69.5%, 70%, 0%, 17.6%)
CIE-LABlab(36.55, 46.79, -75.11)
CIE-LCHlch(36.55, 88.49, 301.92°)
OKLaboklab(47.27% 0.017 -0.2171)
OKLCHoklch(47.27% 0.218 274.5)
XYZxyz(15.5209, 9.2967, 61.9368)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FD2 #D1D23F
analogous
#3F87D2 #403FD2 #893FD2
triadic
#403FD2 #D2403F #3FD240
tetradic
#403FD2 #D23F87 #D1D23F #3FD289
square
#403FD2 #D23F87 #D1D23F #3FD289
split-complementary
#403FD2 #D2893F #87D23F
monochromatic
#1D1D7A #2928AC #403FD2 #7171DE #A3A2E9

Accessibility & contrast

On white

7.34
#403FD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#403FD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FD2
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FD2#FFFFFF#000000##FFFFFF
##403FD21.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#004FCF
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #403fd2;
/* rgb */ color: rgb(64, 63, 210);
/* oklch */ color: oklch(47.3% 0.218 274.5);
Tailwind
colors: {
  custom: {
    50: '#8975e1',
    500: '#403fd2',
    950: '#000000',
  },
}
SCSS
$custom: #403fd2;
$custom-light: #8975e1;
$custom-dark: #000000;
JSON
{
  "hex": "#403fd2",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 210
  },
  "hsl": {
    "h": 240.408,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47269,
    "c": 0.21779,
    "h": 274.5
  },
  "luminance": 0.09298
}

Semantic roles & 50–950 ramp

primary
#403FD2
secondary
#D5D697
accent
#E543E4
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0815
muted
#7E7B84

Preview Lab

Preview with #403FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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