#403F9A#403F9A

#403F9A is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.145 H 278.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#403F9A
RGBrgb(64, 63, 154)
HSLhsl(241, 42%, 43%)
HSVhsv(241, 59%, 60%)
CMYKcmyk(58.4%, 59.1%, 0%, 39.6%)
CIE-LABlab(31.76, 28.00, -49.80)
CIE-LCHlch(31.76, 57.13, 299.35°)
OKLaboklab(42.3% 0.022 -0.1429)
OKLCHoklch(42.3% 0.145 278.7)
XYZxyz(9.7227, 6.9774, 31.4000)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F9A #999A3F
analogous
#3F6C9A #403F9A #6D3F9A
triadic
#403F9A #9A403F #3F9A40
tetradic
#403F9A #9A3F6C #999A3F #3F9A6D
square
#403F9A #9A3F6C #999A3F #3F9A6D
split-complementary
#403F9A #9A6D3F #6C9A3F
monochromatic
#1C1B43 #2E2D6F #403F9A #5C5ABC #8786CD

Accessibility & contrast

On white

8.77
#403F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#403F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F9A
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F9A#FFFFFF#000000##FFFFFF
##403F9A1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9D
Deuteranopia (green-blind)
#004798
Tritanopia (blue-blind)
#095566
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403f9a;
/* rgb */ color: rgb(64, 63, 154);
/* oklch */ color: oklch(42.3% 0.145 278.7);
Tailwind
colors: {
  custom: {
    50: '#7e74b8',
    500: '#403f9a',
    950: '#000000',
  },
}
SCSS
$custom: #403f9a;
$custom-light: #7e74b8;
$custom-dark: #000000;
JSON
{
  "hex": "#403f9a",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 154
  },
  "hsl": {
    "h": 240.659,
    "s": 41.935,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42301,
    "c": 0.14458,
    "h": 278.7
  },
  "luminance": 0.06978
}

Semantic roles & 50–950 ramp

primary
#403F9A
secondary
#B7B87D
accent
#D256D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0811
muted
#7C7B80

Preview Lab

Preview with #403F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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