#403BD6#403BD6

#403BD6 is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 47.1% C 0.227 H 274.7°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#403BD6
RGBrgb(64, 59, 214)
HSLhsl(242, 65%, 54%)
HSVhsv(242, 72%, 84%)
CMYKcmyk(70.1%, 72.4%, 0%, 16.1%)
CIE-LABlab(36.12, 50.33, -78.12)
CIE-LCHlch(36.12, 92.93, 302.79°)
OKLaboklab(47.08% 0.0186 -0.2259)
OKLCHoklch(47.08% 0.227 274.7)
XYZxyz(15.8119, 9.0714, 64.5230)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BD6 #D1D63B
analogous
#3B84D6 #403BD6 #8D3BD6
triadic
#403BD6 #D6403B #3BD640
tetradic
#403BD6 #D63B84 #D1D63B #3BD68D
square
#403BD6 #D63B84 #D1D63B #3BD68D
split-complementary
#403BD6 #D68D3B #84D63B
monochromatic
#1D1A7D #2925AF #403BD6 #716EE1 #A3A0EB

Accessibility & contrast

On white

7.46
#403BD6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#403BD6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BD6
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BD6#FFFFFF#000000##FFFFFF
##403BD61.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDB
Deuteranopia (green-blind)
#004ED3
Tritanopia (blue-blind)
#006785
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #403bd6;
/* rgb */ color: rgb(64, 59, 214);
/* oklch */ color: oklch(47.1% 0.227 274.7);
Tailwind
colors: {
  custom: {
    50: '#8a73e4',
    500: '#403bd6',
    950: '#000000',
  },
}
SCSS
$custom: #403bd6;
$custom-light: #8a73e4;
$custom-dark: #000000;
JSON
{
  "hex": "#403bd6",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 214
  },
  "hsl": {
    "h": 241.935,
    "s": 65.401,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47079,
    "c": 0.22666,
    "h": 274.7
  },
  "luminance": 0.09073
}

Semantic roles & 50–950 ramp

primary
#403BD6
secondary
#D5D895
accent
#E83FE3
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #403BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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