#403D87#403D87

#403D87 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.120 H 281.4°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#403D87
RGBrgb(64, 61, 135)
HSLhsl(242, 38%, 38%)
HSVhsv(242, 55%, 53%)
CMYKcmyk(52.6%, 54.8%, 0%, 47.1%)
CIE-LABlab(29.85, 22.89, -41.22)
CIE-LCHlch(29.85, 47.14, 299.04°)
OKLaboklab(40.45% 0.0238 -0.1177)
OKLCHoklch(40.45% 0.12 281.4)
XYZxyz(8.1549, 6.1763, 23.6794)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D87 #84873D
analogous
#3D5F87 #403D87 #653D87
triadic
#403D87 #87403D #3D8740
tetradic
#403D87 #873D5F #84873D #3D8765
square
#403D87 #873D5F #84873D #3D8765
split-complementary
#403D87 #87653D #5F873D
monochromatic
#181733 #2C2A5D #403D87 #5551B0 #7E7BC3

Accessibility & contrast

On white

9.39
#403D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#403D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D87
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D87#FFFFFF#000000##FFFFFF
##403D871.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15498A
Deuteranopia (green-blind)
#0C4485
Tritanopia (blue-blind)
#244D5C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403d87;
/* rgb */ color: rgb(64, 61, 135);
/* oklch */ color: oklch(40.4% 0.120 281.4);
Tailwind
colors: {
  custom: {
    50: '#7b72aa',
    500: '#403d87',
    950: '#000000',
  },
}
SCSS
$custom: #403d87;
$custom-light: #7b72aa;
$custom-dark: #000000;
JSON
{
  "hex": "#403d87",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 242.432,
    "s": 37.755,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40445,
    "c": 0.12004,
    "h": 281.4
  },
  "luminance": 0.06177
}

Semantic roles & 50–950 ramp

primary
#403D87
secondary
#ABAD73
accent
#CE5AC9
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403D87

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

Preview Lab → · Contrast checker → · Palette generator →

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