#403E96#403E96

#403E96 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.140 H 279.4°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#403E96
RGBrgb(64, 62, 150)
HSLhsl(241, 42%, 42%)
HSVhsv(241, 59%, 59%)
CMYKcmyk(57.3%, 58.7%, 0%, 41.2%)
CIE-LABlab(31.20, 27.29, -48.26)
CIE-LCHlch(31.20, 55.44, 299.48°)
OKLaboklab(41.79% 0.023 -0.1384)
OKLCHoklch(41.79% 0.14 279.4)
XYZxyz(9.3403, 6.7366, 29.6564)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E96 #94963E
analogous
#3E6896 #403E96 #6C3E96
triadic
#403E96 #96403E #3E9640
tetradic
#403E96 #963E68 #94963E #3E966C
square
#403E96 #963E68 #94963E #3E966C
split-complementary
#403E96 #966C3E #68963E
monochromatic
#1B1A3F #2E2C6B #403E96 #5A57BA #8483CC

Accessibility & contrast

On white

8.95
#403E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#403E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E96
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E96#FFFFFF#000000##FFFFFF
##403E961.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#125364
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403e96;
/* rgb */ color: rgb(64, 62, 150);
/* oklch */ color: oklch(41.8% 0.140 279.4);
Tailwind
colors: {
  custom: {
    50: '#7d73b6',
    500: '#403e96',
    950: '#000000',
  },
}
SCSS
$custom: #403e96;
$custom-light: #7d73b6;
$custom-dark: #000000;
JSON
{
  "hex": "#403e96",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 150
  },
  "hsl": {
    "h": 241.364,
    "s": 41.509,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41793,
    "c": 0.1403,
    "h": 279.4
  },
  "luminance": 0.06737
}

Semantic roles & 50–950 ramp

primary
#403E96
secondary
#B4B67A
accent
#D156CF
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403E96

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

Preview Lab → · Contrast checker → · Palette generator →

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