#403EAA#403EAA

#403EAA is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.5% C 0.168 H 277.6°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#403EAA
RGBrgb(64, 62, 170)
HSLhsl(241, 47%, 45%)
HSVhsv(241, 64%, 67%)
CMYKcmyk(62.4%, 63.5%, 0%, 33.3%)
CIE-LABlab(32.78, 34.06, -57.78)
CIE-LCHlch(32.78, 67.07, 300.52°)
OKLaboklab(43.45% 0.0223 -0.1664)
OKLCHoklch(43.45% 0.168 277.6)
XYZxyz(11.0903, 7.4367, 38.8734)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EAA #A8AA3E
analogous
#3E72AA #403EAA #763EAA
triadic
#403EAA #AA403E #3EAA40
tetradic
#403EAA #AA3E72 #A8AA3E #3EAA76
square
#403EAA #AA3E72 #A8AA3E #3EAA76
split-complementary
#403EAA #AA763E #72AA3E
monochromatic
#1E1D50 #2F2E7D #403EAA #6260C5 #8E8DD5

Accessibility & contrast

On white

8.44
#403EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#403EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EAA
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EAA#FFFFFF#000000##FFFFFF
##403EAA1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403eaa;
/* rgb */ color: rgb(64, 62, 170);
/* oklch */ color: oklch(43.5% 0.168 277.6);
Tailwind
colors: {
  custom: {
    50: '#8173c4',
    500: '#403eaa',
    950: '#000000',
  },
}
SCSS
$custom: #403eaa;
$custom-light: #8173c4;
$custom-dark: #000000;
JSON
{
  "hex": "#403eaa",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 170
  },
  "hsl": {
    "h": 241.111,
    "s": 46.552,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43454,
    "c": 0.16785,
    "h": 277.6
  },
  "luminance": 0.07438
}

Semantic roles & 50–950 ramp

primary
#403EAA
secondary
#BFC084
accent
#D652D4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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