#403EA5#403EA5

#403EA5 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.161 H 278.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#403EA5
RGBrgb(64, 62, 165)
HSLhsl(241, 45%, 45%)
HSVhsv(241, 62%, 65%)
CMYKcmyk(61.2%, 62.4%, 0%, 35.3%)
CIE-LABlab(32.37, 32.37, -55.44)
CIE-LCHlch(32.37, 64.20, 300.28°)
OKLaboklab(43.03% 0.0226 -0.1595)
OKLCHoklch(43.03% 0.161 278.1)
XYZxyz(10.6263, 7.2511, 36.4296)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EA5 #A3A53E
analogous
#3E70A5 #403EA5 #743EA5
triadic
#403EA5 #A5403E #3EA540
tetradic
#403EA5 #A53E70 #A3A53E #3EA574
square
#403EA5 #A53E70 #A3A53E #3EA574
split-complementary
#403EA5 #A5743E #70A53E
monochromatic
#1D1D4C #2F2D79 #403EA5 #605EC2 #8C8AD3

Accessibility & contrast

On white

8.57
#403EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#403EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EA5
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EA5#FFFFFF#000000##FFFFFF
##403EA51.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403ea5;
/* rgb */ color: rgb(64, 62, 165);
/* oklch */ color: oklch(43.0% 0.161 278.1);
Tailwind
colors: {
  custom: {
    50: '#8073c1',
    500: '#403ea5',
    950: '#000000',
  },
}
SCSS
$custom: #403ea5;
$custom-light: #8073c1;
$custom-dark: #000000;
JSON
{
  "hex": "#403ea5",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 241.165,
    "s": 45.374,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43026,
    "c": 0.1611,
    "h": 278.1
  },
  "luminance": 0.07252
}

Semantic roles & 50–950 ramp

primary
#403EA5
secondary
#BDBE81
accent
#D553D3
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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