#403EA6#403EA6

#403EA6 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.162 H 278.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#403EA6
RGBrgb(64, 62, 166)
HSLhsl(241, 46%, 45%)
HSVhsv(241, 63%, 65%)
CMYKcmyk(61.4%, 62.7%, 0%, 34.9%)
CIE-LABlab(32.45, 32.71, -55.91)
CIE-LCHlch(32.45, 64.78, 300.33°)
OKLaboklab(43.11% 0.0225 -0.1609)
OKLCHoklch(43.11% 0.162 278)
XYZxyz(10.7177, 7.2876, 36.9109)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EA6 #A4A63E
analogous
#3E70A6 #403EA6 #743EA6
triadic
#403EA6 #A6403E #3EA640
tetradic
#403EA6 #A63E70 #A4A63E #3EA674
square
#403EA6 #A63E70 #A4A63E #3EA674
split-complementary
#403EA6 #A6743E #70A63E
monochromatic
#1E1D4D #2F2D79 #403EA6 #605EC3 #8C8BD4

Accessibility & contrast

On white

8.54
#403EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#403EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EA6
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EA6#FFFFFF#000000##FFFFFF
##403EA61.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403ea6;
/* rgb */ color: rgb(64, 62, 166);
/* oklch */ color: oklch(43.1% 0.162 278.0);
Tailwind
colors: {
  custom: {
    50: '#8073c1',
    500: '#403ea6',
    950: '#000000',
  },
}
SCSS
$custom: #403ea6;
$custom-light: #8073c1;
$custom-dark: #000000;
JSON
{
  "hex": "#403ea6",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 241.154,
    "s": 45.614,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43111,
    "c": 0.16246,
    "h": 278
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#403EA6
secondary
#BDBE82
accent
#D553D3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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