#403EC4#403EC4

#403EC4 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.8% C 0.202 H 275.6°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#403EC4
RGBrgb(64, 62, 196)
HSLhsl(241, 53%, 51%)
HSVhsv(241, 68%, 77%)
CMYKcmyk(67.3%, 68.4%, 0%, 23.1%)
CIE-LABlab(35.04, 42.77, -69.45)
CIE-LCHlch(35.04, 81.57, 301.63°)
OKLaboklab(45.79% 0.0196 -0.2006)
OKLCHoklch(45.79% 0.202 275.6)
XYZxyz(13.7975, 8.5195, 53.1312)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EC4 #C2C43E
analogous
#3E7FC4 #403EC4 #833EC4
triadic
#403EC4 #C4403E #3EC440
tetradic
#403EC4 #C43E7F #C2C43E #3EC483
square
#403EC4 #C43E7F #C2C43E #3EC483
split-complementary
#403EC4 #C4833E #7FC43E
monochromatic
#212068 #302E97 #403EC4 #6E6DD2 #9D9CE1

Accessibility & contrast

On white

7.77
#403EC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#403EC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EC4
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EC4#FFFFFF#000000##FFFFFF
##403EC41.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#004CC1
Tritanopia (blue-blind)
#00627C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #403ec4;
/* rgb */ color: rgb(64, 62, 196);
/* oklch */ color: oklch(45.8% 0.202 275.6);
Tailwind
colors: {
  custom: {
    50: '#8674d7',
    500: '#403ec4',
    950: '#000000',
  },
}
SCSS
$custom: #403ec4;
$custom-light: #8674d7;
$custom-dark: #000000;
JSON
{
  "hex": "#403ec4",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 196
  },
  "hsl": {
    "h": 240.896,
    "s": 53.175,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45792,
    "c": 0.20154,
    "h": 275.6
  },
  "luminance": 0.08521
}

Semantic roles & 50–950 ramp

primary
#403EC4
secondary
#CCCD91
accent
#DD4BDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #403EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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