#403E87#403E87

#403E87 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.6% C 0.119 H 281.0°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#403E87
RGBrgb(64, 62, 135)
HSLhsl(242, 37%, 39%)
HSVhsv(242, 54%, 53%)
CMYKcmyk(52.6%, 54.1%, 0%, 47.1%)
CIE-LABlab(30.12, 22.23, -40.79)
CIE-LCHlch(30.12, 46.45, 298.59°)
OKLaboklab(40.64% 0.0226 -0.1164)
OKLCHoklch(40.64% 0.119 281)
XYZxyz(8.2088, 6.2840, 23.6974)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E87 #85873E
analogous
#3E6087 #403E87 #643E87
triadic
#403E87 #87403E #3E8740
tetradic
#403E87 #873E60 #85873E #3E8764
square
#403E87 #873E60 #85873E #3E8764
split-complementary
#403E87 #87643E #60873E
monochromatic
#181733 #2C2B5D #403E87 #5552B0 #7E7CC3

Accessibility & contrast

On white

9.30
#403E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#403E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E87
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E87#FFFFFF#000000##FFFFFF
##403E871.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184A8A
Deuteranopia (green-blind)
#104485
Tritanopia (blue-blind)
#244E5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403e87;
/* rgb */ color: rgb(64, 62, 135);
/* oklch */ color: oklch(40.6% 0.119 281.0);
Tailwind
colors: {
  custom: {
    50: '#7a73aa',
    500: '#403e87',
    950: '#000000',
  },
}
SCSS
$custom: #403e87;
$custom-light: #7a73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#403e87",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 241.644,
    "s": 37.056,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40644,
    "c": 0.11857,
    "h": 281
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#403E87
secondary
#ACAD74
accent
#CD5BCA
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403E87

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

Preview Lab → · Contrast checker → · Palette generator →

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