#403EAB#403EAB

#403EAB is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.169 H 277.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#403EAB
RGBrgb(64, 62, 171)
HSLhsl(241, 47%, 46%)
HSVhsv(241, 64%, 67%)
CMYKcmyk(62.6%, 63.7%, 0%, 32.9%)
CIE-LABlab(32.86, 34.40, -58.24)
CIE-LCHlch(32.86, 67.64, 300.57°)
OKLaboklab(43.54% 0.0222 -0.1677)
OKLCHoklch(43.54% 0.169 277.5)
XYZxyz(11.1853, 7.4746, 39.3735)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EAB #A9AB3E
analogous
#3E72AB #403EAB #763EAB
triadic
#403EAB #AB403E #3EAB40
tetradic
#403EAB #AB3E72 #A9AB3E #3EAB76
square
#403EAB #AB3E72 #A9AB3E #3EAB76
split-complementary
#403EAB #AB763E #72AB3E
monochromatic
#1E1D51 #2F2E7E #403EAB #6261C6 #8F8ED6

Accessibility & contrast

On white

8.42
#403EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#403EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EAB
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EAB#FFFFFF#000000##FFFFFF
##403EAB1.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403eab;
/* rgb */ color: rgb(64, 62, 171);
/* oklch */ color: oklch(43.5% 0.169 277.5);
Tailwind
colors: {
  custom: {
    50: '#8173c5',
    500: '#403eab',
    950: '#000000',
  },
}
SCSS
$custom: #403eab;
$custom-light: #8173c5;
$custom-dark: #000000;
JSON
{
  "hex": "#403eab",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 171
  },
  "hsl": {
    "h": 241.101,
    "s": 46.781,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4354,
    "c": 0.16918,
    "h": 277.5
  },
  "luminance": 0.07476
}

Semantic roles & 50–950 ramp

primary
#403EAB
secondary
#C0C184
accent
#D651D4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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