#403F89#403F89

#403F89 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.120 H 280.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#403F89
RGBrgb(64, 63, 137)
HSLhsl(241, 37%, 39%)
HSVhsv(241, 54%, 54%)
CMYKcmyk(53.3%, 54%, 0%, 46.3%)
CIE-LABlab(30.52, 22.24, -41.38)
CIE-LCHlch(30.52, 46.97, 298.26°)
OKLaboklab(40.99% 0.0215 -0.1181)
OKLCHoklch(40.99% 0.12 280.3)
XYZxyz(8.4058, 6.4507, 24.4642)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F89 #88893F
analogous
#3F6389 #403F89 #653F89
triadic
#403F89 #89403F #3F8940
tetradic
#403F89 #893F63 #88893F #3F8965
square
#403F89 #893F63 #88893F #3F8965
split-complementary
#403F89 #89653F #63893F
monochromatic
#191835 #2C2C5F #403F89 #5655B1 #7F7EC4

Accessibility & contrast

On white

9.17
#403F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#403F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F89
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F89#FFFFFF#000000##FFFFFF
##403F891.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184B8C
Deuteranopia (green-blind)
#0F4587
Tritanopia (blue-blind)
#224F5D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #403f89;
/* rgb */ color: rgb(64, 63, 137);
/* oklch */ color: oklch(41.0% 0.120 280.3);
Tailwind
colors: {
  custom: {
    50: '#7b74ac',
    500: '#403f89',
    950: '#000000',
  },
}
SCSS
$custom: #403f89;
$custom-light: #7b74ac;
$custom-dark: #000000;
JSON
{
  "hex": "#403f89",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 137
  },
  "hsl": {
    "h": 240.811,
    "s": 37,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4099,
    "c": 0.12007,
    "h": 280.3
  },
  "luminance": 0.06451
}

Semantic roles & 50–950 ramp

primary
#403F89
secondary
#ADAE76
accent
#CD5BCB
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403F89

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

Preview Lab → · Contrast checker → · Palette generator →

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