#403AC6#403AC6

#403AC6 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.4% C 0.208 H 276.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#403AC6
RGBrgb(64, 58, 198)
HSLhsl(243, 55%, 50%)
HSVhsv(243, 71%, 78%)
CMYKcmyk(67.7%, 70.7%, 0%, 22.4%)
CIE-LABlab(34.38, 45.75, -71.71)
CIE-LCHlch(34.38, 85.06, 302.54°)
OKLaboklab(45.37% 0.0219 -0.2072)
OKLCHoklch(45.37% 0.208 276)
XYZxyz(13.8171, 8.1921, 54.2682)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AC6 #C0C63A
analogous
#3A7AC6 #403AC6 #863AC6
triadic
#403AC6 #C6403A #3AC640
tetradic
#403AC6 #C63A7A #C0C63A #3AC686
square
#403AC6 #C63A7A #C0C63A #3AC686
split-complementary
#403AC6 #C6863A #7AC63A
monochromatic
#211E68 #302C97 #403AC6 #6E69D4 #9C99E1

Accessibility & contrast

On white

7.96
#403AC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#403AC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AC6
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AC6#FFFFFF#000000##FFFFFF
##403AC61.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CA
Deuteranopia (green-blind)
#004BC3
Tritanopia (blue-blind)
#00617C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #403ac6;
/* rgb */ color: rgb(64, 58, 198);
/* oklch */ color: oklch(45.4% 0.208 276.0);
Tailwind
colors: {
  custom: {
    50: '#8672d9',
    500: '#403ac6',
    950: '#000000',
  },
}
SCSS
$custom: #403ac6;
$custom-light: #8672d9;
$custom-dark: #000000;
JSON
{
  "hex": "#403ac6",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 198
  },
  "hsl": {
    "h": 242.571,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45373,
    "c": 0.20833,
    "h": 276
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#403AC6
secondary
#CBCD8F
accent
#DE49D8
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #403AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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