#403EA3#403EA3

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

Color values

HEX#403EA3
RGBrgb(64, 62, 163)
HSLhsl(241, 45%, 44%)
HSVhsv(241, 62%, 64%)
CMYKcmyk(60.7%, 62%, 0%, 36.1%)
CIE-LABlab(32.21, 31.69, -54.50)
CIE-LCHlch(32.21, 63.05, 300.18°)
OKLaboklab(42.86% 0.0227 -0.1567)
OKLCHoklch(42.86% 0.158 278.2)
XYZxyz(10.4457, 7.1788, 35.4784)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EA3 #A1A33E
analogous
#3E6FA3 #403EA3 #733EA3
triadic
#403EA3 #A3403E #3EA340
tetradic
#403EA3 #A33E6F #A1A33E #3EA373
square
#403EA3 #A33E6F #A1A33E #3EA373
split-complementary
#403EA3 #A3733E #6FA33E
monochromatic
#1D1C4A #2F2D77 #403EA3 #5F5DC1 #8B89D2

Accessibility & contrast

On white

8.62
#403EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403EA3
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EA3#FFFFFF#000000##FFFFFF
##403EA31.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403ea3;
/* rgb */ color: rgb(64, 62, 163);
/* oklch */ color: oklch(42.9% 0.158 278.2);
Tailwind
colors: {
  custom: {
    50: '#7f73bf',
    500: '#403ea3',
    950: '#000000',
  },
}
SCSS
$custom: #403ea3;
$custom-light: #7f73bf;
$custom-dark: #000000;
JSON
{
  "hex": "#403ea3",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 163
  },
  "hsl": {
    "h": 241.188,
    "s": 44.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42857,
    "c": 0.15837,
    "h": 278.2
  },
  "luminance": 0.0718
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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