#403FC6#403FC6

#403FC6 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.1% C 0.203 H 275.3°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#403FC6
RGBrgb(64, 63, 198)
HSLhsl(240, 54%, 51%)
HSVhsv(240, 68%, 78%)
CMYKcmyk(67.7%, 68.2%, 0%, 22.4%)
CIE-LABlab(35.44, 42.84, -69.97)
CIE-LCHlch(35.44, 82.04, 301.48°)
OKLaboklab(46.14% 0.0187 -0.2021)
OKLCHoklch(46.14% 0.203 275.3)
XYZxyz(14.0815, 8.7209, 54.3564)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FC6 #C5C63F
analogous
#3F81C6 #403FC6 #833FC6
triadic
#403FC6 #C6403F #3FC640
tetradic
#403FC6 #C63F81 #C5C63F #3FC683
square
#403FC6 #C63F81 #C5C63F #3FC683
split-complementary
#403FC6 #C6833F #81C63F
monochromatic
#20206B #2F2E9A #403FC6 #6F6ED4 #9E9DE2

Accessibility & contrast

On white

7.65
#403FC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#403FC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FC6
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FC6#FFFFFF#000000##FFFFFF
##403FC61.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#004DC3
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #403fc6;
/* rgb */ color: rgb(64, 63, 198);
/* oklch */ color: oklch(46.1% 0.203 275.3);
Tailwind
colors: {
  custom: {
    50: '#8675d8',
    500: '#403fc6',
    950: '#000000',
  },
}
SCSS
$custom: #403fc6;
$custom-light: #8675d8;
$custom-dark: #000000;
JSON
{
  "hex": "#403fc6",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 198
  },
  "hsl": {
    "h": 240.444,
    "s": 54.217,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.20294,
    "h": 275.3
  },
  "luminance": 0.08722
}

Semantic roles & 50–950 ramp

primary
#403FC6
secondary
#CECE93
accent
#DE4ADC
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #403FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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