#403EA1#403EA1

#403EA1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.156 H 278.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#403EA1
RGBrgb(64, 62, 161)
HSLhsl(241, 44%, 44%)
HSVhsv(241, 61%, 63%)
CMYKcmyk(60.2%, 61.5%, 0%, 36.9%)
CIE-LABlab(32.05, 31.02, -53.56)
CIE-LCHlch(32.05, 61.89, 300.08°)
OKLaboklab(42.69% 0.0228 -0.154)
OKLCHoklch(42.69% 0.156 278.4)
XYZxyz(10.2679, 7.1077, 34.5421)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EA1 #9FA13E
analogous
#3E6DA1 #403EA1 #713EA1
triadic
#403EA1 #A1403E #3EA140
tetradic
#403EA1 #A13E6D #9FA13E #3EA171
square
#403EA1 #A13E6D #9FA13E #3EA171
split-complementary
#403EA1 #A1713E #6DA13E
monochromatic
#1D1C49 #2E2D75 #403EA1 #5E5CC0 #8A88D1

Accessibility & contrast

On white

8.67
#403EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#403EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EA1
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EA1#FFFFFF#000000##FFFFFF
##403EA11.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403ea1;
/* rgb */ color: rgb(64, 62, 161);
/* oklch */ color: oklch(42.7% 0.156 278.4);
Tailwind
colors: {
  custom: {
    50: '#7f73be',
    500: '#403ea1',
    950: '#000000',
  },
}
SCSS
$custom: #403ea1;
$custom-light: #7f73be;
$custom-dark: #000000;
JSON
{
  "hex": "#403ea1",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 241.212,
    "s": 44.395,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4269,
    "c": 0.15564,
    "h": 278.4
  },
  "luminance": 0.07108
}

Semantic roles & 50–950 ramp

primary
#403EA1
secondary
#BBBC7F
accent
#D454D2
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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