#403E9A#403E9A

#403E9A is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.146 H 279.1°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#403E9A
RGBrgb(64, 62, 154)
HSLhsl(241, 43%, 42%)
HSVhsv(241, 60%, 60%)
CMYKcmyk(58.4%, 59.7%, 0%, 39.6%)
CIE-LABlab(31.50, 28.64, -50.21)
CIE-LCHlch(31.50, 57.80, 299.70°)
OKLaboklab(42.11% 0.023 -0.1441)
OKLCHoklch(42.11% 0.146 279.1)
XYZxyz(9.6679, 6.8677, 31.3817)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E9A #989A3E
analogous
#3E6A9A #403E9A #6E3E9A
triadic
#403E9A #9A403E #3E9A40
tetradic
#403E9A #9A3E6A #989A3E #3E9A6E
square
#403E9A #9A3E6A #989A3E #3E9A6E
split-complementary
#403E9A #9A6E3E #6A9A3E
monochromatic
#1C1B43 #2E2C6E #403E9A #5B59BC #8685CE

Accessibility & contrast

On white

8.85
#403E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#403E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E9A
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E9A#FFFFFF#000000##FFFFFF
##403E9A1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#0A5466
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403e9a;
/* rgb */ color: rgb(64, 62, 154);
/* oklch */ color: oklch(42.1% 0.146 279.1);
Tailwind
colors: {
  custom: {
    50: '#7e73b8',
    500: '#403e9a',
    950: '#000000',
  },
}
SCSS
$custom: #403e9a;
$custom-light: #7e73b8;
$custom-dark: #000000;
JSON
{
  "hex": "#403e9a",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 154
  },
  "hsl": {
    "h": 241.304,
    "s": 42.593,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42114,
    "c": 0.14593,
    "h": 279.1
  },
  "luminance": 0.06868
}

Semantic roles & 50–950 ramp

primary
#403E9A
secondary
#B7B87C
accent
#D255D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0811
muted
#7C7B80

Preview Lab

Preview with #403E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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