#403EA9#403EA9

#403EA9 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.167 H 277.7°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#403EA9
RGBrgb(64, 62, 169)
HSLhsl(241, 46%, 45%)
HSVhsv(241, 63%, 66%)
CMYKcmyk(62.1%, 63.3%, 0%, 33.7%)
CIE-LABlab(32.70, 33.73, -57.31)
CIE-LCHlch(32.70, 66.50, 300.47°)
OKLaboklab(43.37% 0.0223 -0.165)
OKLCHoklch(43.37% 0.167 277.7)
XYZxyz(10.9961, 7.3990, 38.3771)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EA9 #A7A93E
analogous
#3E72A9 #403EA9 #753EA9
triadic
#403EA9 #A9403E #3EA940
tetradic
#403EA9 #A93E72 #A7A93E #3EA975
square
#403EA9 #A93E72 #A7A93E #3EA975
split-complementary
#403EA9 #A9753E #72A93E
monochromatic
#1E1D4F #2F2E7C #403EA9 #6260C5 #8E8CD5

Accessibility & contrast

On white

8.47
#403EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#403EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EA9
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EA9#FFFFFF#000000##FFFFFF
##403EA91.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0048A7
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403ea9;
/* rgb */ color: rgb(64, 62, 169);
/* oklch */ color: oklch(43.4% 0.167 277.7);
Tailwind
colors: {
  custom: {
    50: '#8073c3',
    500: '#403ea9',
    950: '#000000',
  },
}
SCSS
$custom: #403ea9;
$custom-light: #8073c3;
$custom-dark: #000000;
JSON
{
  "hex": "#403ea9",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 169
  },
  "hsl": {
    "h": 241.121,
    "s": 46.32,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43368,
    "c": 0.16651,
    "h": 277.7
  },
  "luminance": 0.074
}

Semantic roles & 50–950 ramp

primary
#403EA9
secondary
#BFC083
accent
#D652D3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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