#403EB7#403EB7

#403EB7 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.185 H 276.6°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#403EB7
RGBrgb(64, 62, 183)
HSLhsl(241, 49%, 48%)
HSVhsv(241, 66%, 72%)
CMYKcmyk(65%, 66.1%, 0%, 28.2%)
CIE-LABlab(33.88, 38.44, -63.71)
CIE-LCHlch(33.88, 74.41, 301.11°)
OKLaboklab(44.6% 0.0211 -0.1837)
OKLCHoklch(44.6% 0.185 276.6)
XYZxyz(12.3814, 7.9531, 45.6732)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EB7 #B5B73E
analogous
#3E78B7 #403EB7 #7C3EB7
triadic
#403EB7 #B7403E #3EB740
tetradic
#403EB7 #B73E78 #B5B73E #3EB77C
square
#403EB7 #B73E78 #B5B73E #3EB77C
split-complementary
#403EB7 #B77C3E #78B73E
monochromatic
#201F5C #302F89 #403EB7 #6867CB #9694DB

Accessibility & contrast

On white

8.11
#403EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#403EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EB7
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EB7#FFFFFF#000000##FFFFFF
##403EB71.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#005E75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #403eb7;
/* rgb */ color: rgb(64, 62, 183);
/* oklch */ color: oklch(44.6% 0.185 276.6);
Tailwind
colors: {
  custom: {
    50: '#8374ce',
    500: '#403eb7',
    950: '#000000',
  },
}
SCSS
$custom: #403eb7;
$custom-light: #8374ce;
$custom-dark: #000000;
JSON
{
  "hex": "#403eb7",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 183
  },
  "hsl": {
    "h": 240.992,
    "s": 49.388,
    "l": 48.039
  },
  "oklch": {
    "l": 0.446,
    "c": 0.18496,
    "h": 276.6
  },
  "luminance": 0.07954
}

Semantic roles & 50–950 ramp

primary
#403EB7
secondary
#C5C68A
accent
#D94FD7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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