#403D9E#403D9E

#403D9E is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.153 H 279.0°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#403D9E
RGBrgb(64, 61, 158)
HSLhsl(242, 44%, 43%)
HSVhsv(242, 61%, 62%)
CMYKcmyk(59.5%, 61.4%, 0%, 38%)
CIE-LABlab(31.57, 30.64, -52.53)
CIE-LCHlch(31.57, 60.81, 300.25°)
OKLaboklab(42.26% 0.0239 -0.1509)
OKLCHoklch(42.26% 0.153 279)
XYZxyz(9.9527, 6.8954, 33.1476)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D9E #9B9E3D
analogous
#3D6A9E #403D9E #713D9E
triadic
#403D9E #9E403D #3D9E40
tetradic
#403D9E #9E3D6A #9B9E3D #3D9E71
square
#403D9E #9E3D6A #9B9E3D #3D9E71
split-complementary
#403D9E #9E713D #6A9E3D
monochromatic
#1C1B46 #2E2C72 #403D9E #5C59BF #8885D0

Accessibility & contrast

On white

8.83
#403D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#403D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D9E
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D9E#FFFFFF#000000##FFFFFF
##403D9E1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403d9e;
/* rgb */ color: rgb(64, 61, 158);
/* oklch */ color: oklch(42.3% 0.153 279.0);
Tailwind
colors: {
  custom: {
    50: '#7e73bb',
    500: '#403d9e',
    950: '#000000',
  },
}
SCSS
$custom: #403d9e;
$custom-light: #7e73bb;
$custom-dark: #000000;
JSON
{
  "hex": "#403d9e",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 158
  },
  "hsl": {
    "h": 241.856,
    "s": 44.292,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4226,
    "c": 0.15283,
    "h": 279
  },
  "luminance": 0.06896
}

Semantic roles & 50–950 ramp

primary
#403D9E
secondary
#B8BA7D
accent
#D454D0
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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