#403EA4#403EA4

#403EA4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.160 H 278.1°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#403EA4
RGBrgb(64, 62, 164)
HSLhsl(241, 45%, 44%)
HSVhsv(241, 62%, 64%)
CMYKcmyk(61%, 62.2%, 0%, 35.7%)
CIE-LABlab(32.29, 32.03, -54.97)
CIE-LCHlch(32.29, 63.63, 300.23°)
OKLaboklab(42.94% 0.0226 -0.1581)
OKLCHoklch(42.94% 0.16 278.1)
XYZxyz(10.5357, 7.2148, 35.9522)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EA4 #A2A43E
analogous
#3E6FA4 #403EA4 #733EA4
triadic
#403EA4 #A4403E #3EA440
tetradic
#403EA4 #A43E6F #A2A43E #3EA473
square
#403EA4 #A43E6F #A2A43E #3EA473
split-complementary
#403EA4 #A4733E #6FA43E
monochromatic
#1D1C4B #2F2D78 #403EA4 #5F5DC2 #8B8AD3

Accessibility & contrast

On white

8.60
#403EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#403EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EA4
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EA4#FFFFFF#000000##FFFFFF
##403EA41.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403ea4;
/* rgb */ color: rgb(64, 62, 164);
/* oklch */ color: oklch(42.9% 0.160 278.1);
Tailwind
colors: {
  custom: {
    50: '#7f73c0',
    500: '#403ea4',
    950: '#000000',
  },
}
SCSS
$custom: #403ea4;
$custom-light: #7f73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#403ea4",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 164
  },
  "hsl": {
    "h": 241.176,
    "s": 45.133,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42942,
    "c": 0.15974,
    "h": 278.1
  },
  "luminance": 0.07216
}

Semantic roles & 50–950 ramp

primary
#403EA4
secondary
#BCBD81
accent
#D553D2
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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