#403D86#403D86

#403D86 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 40.4% C 0.119 H 281.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#403D86
RGBrgb(64, 61, 134)
HSLhsl(242, 37%, 38%)
HSVhsv(242, 54%, 53%)
CMYKcmyk(52.2%, 54.5%, 0%, 47.5%)
CIE-LABlab(29.78, 22.55, -40.71)
CIE-LCHlch(29.78, 46.54, 298.99°)
OKLaboklab(40.37% 0.0237 -0.1162)
OKLCHoklch(40.37% 0.119 281.5)
XYZxyz(8.0849, 6.1483, 23.3104)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D86 #83863D
analogous
#3D5E86 #403D86 #643D86
triadic
#403D86 #86403D #3D8640
tetradic
#403D86 #863D5E #83863D #3D8664
square
#403D86 #863D5E #83863D #3D8664
split-complementary
#403D86 #86643D #5E863D
monochromatic
#181732 #2C2A5C #403D86 #5451B0 #7E7BC3

Accessibility & contrast

On white

9.42
#403D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#403D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D86
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D86#FFFFFF#000000##FFFFFF
##403D861.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164989
Deuteranopia (green-blind)
#0F4484
Tritanopia (blue-blind)
#254D5B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403d86;
/* rgb */ color: rgb(64, 61, 134);
/* oklch */ color: oklch(40.4% 0.119 281.5);
Tailwind
colors: {
  custom: {
    50: '#7a72aa',
    500: '#403d86',
    950: '#000000',
  },
}
SCSS
$custom: #403d86;
$custom-light: #7a72aa;
$custom-dark: #000000;
JSON
{
  "hex": "#403d86",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 134
  },
  "hsl": {
    "h": 242.466,
    "s": 37.436,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40371,
    "c": 0.11856,
    "h": 281.5
  },
  "luminance": 0.06149
}

Semantic roles & 50–950 ramp

primary
#403D86
secondary
#AAAD72
accent
#CD5AC9
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403D86

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

Preview Lab → · Contrast checker → · Palette generator →

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