#403D89#403D89

#403D89 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.123 H 281.2°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#403D89
RGBrgb(64, 61, 137)
HSLhsl(242, 38%, 39%)
HSVhsv(242, 55%, 54%)
CMYKcmyk(53.3%, 55.5%, 0%, 46.3%)
CIE-LABlab(29.99, 23.56, -42.23)
CIE-LCHlch(29.99, 48.35, 299.15°)
OKLaboklab(40.6% 0.0239 -0.1206)
OKLCHoklch(40.6% 0.123 281.2)
XYZxyz(8.2971, 6.2331, 24.4280)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D89 #86893D
analogous
#3D6089 #403D89 #663D89
triadic
#403D89 #89403D #3D8940
tetradic
#403D89 #893D60 #86893D #3D8966
square
#403D89 #893D60 #86893D #3D8966
split-complementary
#403D89 #89663D #60893D
monochromatic
#181734 #2C2A5F #403D89 #5551B2 #7F7CC5

Accessibility & contrast

On white

9.35
#403D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#403D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D89
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D89#FFFFFF#000000##FFFFFF
##403D891.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11498C
Deuteranopia (green-blind)
#064487
Tritanopia (blue-blind)
#224E5D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403d89;
/* rgb */ color: rgb(64, 61, 137);
/* oklch */ color: oklch(40.6% 0.123 281.2);
Tailwind
colors: {
  custom: {
    50: '#7b72ac',
    500: '#403d89',
    950: '#000000',
  },
}
SCSS
$custom: #403d89;
$custom-light: #7b72ac;
$custom-dark: #000000;
JSON
{
  "hex": "#403d89",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 137
  },
  "hsl": {
    "h": 242.368,
    "s": 38.384,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40595,
    "c": 0.12299,
    "h": 281.2
  },
  "luminance": 0.06234
}

Semantic roles & 50–950 ramp

primary
#403D89
secondary
#ACAE73
accent
#CE59CA
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403D89

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

Preview Lab → · Contrast checker → · Palette generator →

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