#403F87#403F87

#403F87 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.8% C 0.117 H 280.5°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#403F87
RGBrgb(64, 63, 135)
HSLhsl(241, 36%, 39%)
HSVhsv(241, 53%, 53%)
CMYKcmyk(52.6%, 53.3%, 0%, 47.1%)
CIE-LABlab(30.39, 21.57, -40.36)
CIE-LCHlch(30.39, 45.76, 298.12°)
OKLaboklab(40.84% 0.0213 -0.1151)
OKLCHoklch(40.84% 0.117 280.5)
XYZxyz(8.2637, 6.3938, 23.7157)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F87 #86873F
analogous
#3F6287 #403F87 #643F87
triadic
#403F87 #87403F #3F8740
tetradic
#403F87 #873F62 #86873F #3F8764
square
#403F87 #873F62 #86873F #3F8764
split-complementary
#403F87 #87643F #62873F
monochromatic
#181834 #2C2C5D #403F87 #5554AF #7F7EC3

Accessibility & contrast

On white

9.22
#403F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#403F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F87
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F87#FFFFFF#000000##FFFFFF
##403F871.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A8A
Deuteranopia (green-blind)
#134585
Tritanopia (blue-blind)
#244F5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #403f87;
/* rgb */ color: rgb(64, 63, 135);
/* oklch */ color: oklch(40.8% 0.117 280.5);
Tailwind
colors: {
  custom: {
    50: '#7a74aa',
    500: '#403f87',
    950: '#000000',
  },
}
SCSS
$custom: #403f87;
$custom-light: #7a74aa;
$custom-dark: #000000;
JSON
{
  "hex": "#403f87",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 240.833,
    "s": 36.364,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40844,
    "c": 0.1171,
    "h": 280.5
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#403F87
secondary
#ACAD75
accent
#CC5BCB
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403F87

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

Preview Lab → · Contrast checker → · Palette generator →

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