#403EB5#403EB5

#403EB5 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.182 H 276.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#403EB5
RGBrgb(64, 62, 181)
HSLhsl(241, 49%, 48%)
HSVhsv(241, 66%, 71%)
CMYKcmyk(64.6%, 65.7%, 0%, 29%)
CIE-LABlab(33.71, 37.77, -62.81)
CIE-LCHlch(33.71, 73.29, 301.02°)
OKLaboklab(44.42% 0.0213 -0.1811)
OKLCHoklch(44.42% 0.182 276.7)
XYZxyz(12.1748, 7.8704, 44.5847)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EB5 #B3B53E
analogous
#3E78B5 #403EB5 #7B3EB5
triadic
#403EB5 #B5403E #3EB540
tetradic
#403EB5 #B53E78 #B3B53E #3EB57B
square
#403EB5 #B53E78 #B3B53E #3EB57B
split-complementary
#403EB5 #B57B3E #78B53E
monochromatic
#201F5A #302E87 #403EB5 #6766CA #9493DA

Accessibility & contrast

On white

8.16
#403EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#403EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EB5
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EB5#FFFFFF#000000##FFFFFF
##403EB51.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403eb5;
/* rgb */ color: rgb(64, 62, 181);
/* oklch */ color: oklch(44.4% 0.182 276.7);
Tailwind
colors: {
  custom: {
    50: '#8374cc',
    500: '#403eb5',
    950: '#000000',
  },
}
SCSS
$custom: #403eb5;
$custom-light: #8374cc;
$custom-dark: #000000;
JSON
{
  "hex": "#403eb5",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 241.008,
    "s": 48.971,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44421,
    "c": 0.18236,
    "h": 276.7
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#403EB5
secondary
#C4C589
accent
#D94FD6
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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