#403E89#403E89

#403E89 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.122 H 280.8°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#403E89
RGBrgb(64, 62, 137)
HSLhsl(242, 38%, 39%)
HSVhsv(242, 55%, 54%)
CMYKcmyk(53.3%, 54.7%, 0%, 46.3%)
CIE-LABlab(30.26, 22.90, -41.80)
CIE-LCHlch(30.26, 47.66, 298.71°)
OKLaboklab(40.79% 0.0227 -0.1194)
OKLCHoklch(40.79% 0.122 280.8)
XYZxyz(8.3509, 6.3409, 24.4459)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E89 #87893E
analogous
#3E6289 #403E89 #663E89
triadic
#403E89 #89403E #3E8940
tetradic
#403E89 #893E62 #87893E #3E8966
square
#403E89 #893E62 #87893E #3E8966
split-complementary
#403E89 #89663E #62893E
monochromatic
#191835 #2C2B5F #403E89 #5653B1 #7F7DC4

Accessibility & contrast

On white

9.26
#403E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#403E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E89
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E89#FFFFFF#000000##FFFFFF
##403E891.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154A8C
Deuteranopia (green-blind)
#0B4487
Tritanopia (blue-blind)
#224F5D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403e89;
/* rgb */ color: rgb(64, 62, 137);
/* oklch */ color: oklch(40.8% 0.122 280.8);
Tailwind
colors: {
  custom: {
    50: '#7b73ac',
    500: '#403e89',
    950: '#000000',
  },
}
SCSS
$custom: #403e89;
$custom-light: #7b73ac;
$custom-dark: #000000;
JSON
{
  "hex": "#403e89",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 137
  },
  "hsl": {
    "h": 241.6,
    "s": 37.688,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40792,
    "c": 0.12152,
    "h": 280.8
  },
  "luminance": 0.06341
}

Semantic roles & 50–950 ramp

primary
#403E89
secondary
#ADAE74
accent
#CE5ACB
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403E89

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

Preview Lab → · Contrast checker → · Palette generator →

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