#403DD6#403DD6

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

Color values

HEX#403DD6
RGBrgb(64, 61, 214)
HSLhsl(241, 65%, 54%)
HSVhsv(241, 71%, 84%)
CMYKcmyk(70.1%, 71.5%, 0%, 16.1%)
CIE-LABlab(36.52, 49.22, -77.47)
CIE-LCHlch(36.52, 91.78, 302.43°)
OKLaboklab(47.36% 0.0175 -0.224)
OKLCHoklch(47.36% 0.225 274.5)
XYZxyz(15.9167, 9.2810, 64.5579)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DD6 #D3D63D
analogous
#3D87D6 #403DD6 #8C3DD6
triadic
#403DD6 #D6403D #3DD640
tetradic
#403DD6 #D63D87 #D3D63D #3DD68C
square
#403DD6 #D63D87 #D3D63D #3DD68C
split-complementary
#403DD6 #D68C3D #87D63D
monochromatic
#1D1B7E #2825B1 #403DD6 #7270E1 #A3A2EB

Accessibility & contrast

On white

7.35
#403DD6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403DD6
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DD6#FFFFFF#000000##FFFFFF
##403DD61.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDB
Deuteranopia (green-blind)
#004FD3
Tritanopia (blue-blind)
#006886
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #403dd6;
/* rgb */ color: rgb(64, 61, 214);
/* oklch */ color: oklch(47.4% 0.225 274.5);
Tailwind
colors: {
  custom: {
    50: '#8a74e4',
    500: '#403dd6',
    950: '#000000',
  },
}
SCSS
$custom: #403dd6;
$custom-light: #8a74e4;
$custom-dark: #000000;
JSON
{
  "hex": "#403dd6",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 214
  },
  "hsl": {
    "h": 241.176,
    "s": 65.106,
    "l": 53.922
  },
  "oklch": {
    "l": 0.47363,
    "c": 0.22468,
    "h": 274.5
  },
  "luminance": 0.09283
}

Semantic roles & 50–950 ramp

primary
#403DD6
secondary
#D7D897
accent
#E840E5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #403DD6

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

Preview Lab → · Contrast checker → · Palette generator →

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