#403F85#403F85

#403F85 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.7% C 0.114 H 280.7°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#403F85
RGBrgb(64, 63, 133)
HSLhsl(241, 36%, 38%)
HSVhsv(241, 53%, 52%)
CMYKcmyk(51.9%, 52.6%, 0%, 47.8%)
CIE-LABlab(30.25, 20.90, -39.34)
CIE-LCHlch(30.25, 44.54, 297.98°)
OKLaboklab(40.7% 0.0212 -0.1121)
OKLCHoklch(40.7% 0.114 280.7)
XYZxyz(8.1242, 6.3380, 22.9810)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F85 #84853F
analogous
#3F6185 #403F85 #633F85
triadic
#403F85 #85403F #3F8540
tetradic
#403F85 #853F61 #84853F #3F8563
square
#403F85 #853F61 #84853F #3F8563
split-complementary
#403F85 #85633F #61853F
monochromatic
#181832 #2C2B5B #403F85 #5553AE #7E7DC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##403F85#FFFFFF#000000##FFFFFF
##403F851.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)
#1D4A87
Deuteranopia (green-blind)
#164583
Tritanopia (blue-blind)
#254E5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403f85;
/* rgb */ color: rgb(64, 63, 133);
/* oklch */ color: oklch(40.7% 0.114 280.7);
Tailwind
colors: {
  custom: {
    50: '#7a74a9',
    500: '#403f85',
    950: '#000000',
  },
}
SCSS
$custom: #403f85;
$custom-light: #7a74a9;
$custom-dark: #000000;
JSON
{
  "hex": "#403f85",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 133
  },
  "hsl": {
    "h": 240.857,
    "s": 35.714,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40699,
    "c": 0.11411,
    "h": 280.7
  },
  "luminance": 0.06338
}

Semantic roles & 50–950 ramp

primary
#403F85
secondary
#ABAC74
accent
#CC5CCA
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403F85

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

Preview Lab → · Contrast checker → · Palette generator →

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