#403E9E#403E9E

#403E9E is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.151 H 278.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#403E9E
RGBrgb(64, 62, 158)
HSLhsl(241, 44%, 43%)
HSVhsv(241, 61%, 62%)
CMYKcmyk(59.5%, 60.8%, 0%, 38%)
CIE-LABlab(31.81, 30.00, -52.13)
CIE-LCHlch(31.81, 60.15, 299.92°)
OKLaboklab(42.44% 0.0229 -0.1498)
OKLCHoklch(42.44% 0.152 278.7)
XYZxyz(10.0066, 7.0031, 33.1656)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E9E #9C9E3E
analogous
#3E6C9E #403E9E #703E9E
triadic
#403E9E #9E403E #3E9E40
tetradic
#403E9E #9E3E6C #9C9E3E #3E9E70
square
#403E9E #9E3E6C #9C9E3E #3E9E70
split-complementary
#403E9E #9E703E #6C9E3E
monochromatic
#1C1C46 #2E2D72 #403E9E #5D5BBF #8887D0

Accessibility & contrast

On white

8.75
#403E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#403E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E9E
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E9E#FFFFFF#000000##FFFFFF
##403E9E1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403e9e;
/* rgb */ color: rgb(64, 62, 158);
/* oklch */ color: oklch(42.4% 0.151 278.7);
Tailwind
colors: {
  custom: {
    50: '#7e73bb',
    500: '#403e9e',
    950: '#000000',
  },
}
SCSS
$custom: #403e9e;
$custom-light: #7e73bb;
$custom-dark: #000000;
JSON
{
  "hex": "#403e9e",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 158
  },
  "hsl": {
    "h": 241.25,
    "s": 43.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42441,
    "c": 0.1515,
    "h": 278.7
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#403E9E
secondary
#B9BA7E
accent
#D354D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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