#403CC7#403CC7

#403CC7 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.8% C 0.207 H 275.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#403CC7
RGBrgb(64, 60, 199)
HSLhsl(242, 55%, 51%)
HSVhsv(242, 70%, 78%)
CMYKcmyk(67.8%, 69.8%, 0%, 22%)
CIE-LABlab(34.89, 44.92, -71.45)
CIE-LCHlch(34.89, 84.40, 302.16°)
OKLaboklab(45.77% 0.0205 -0.2064)
OKLCHoklch(45.77% 0.207 275.7)
XYZxyz(14.0356, 8.4440, 54.9119)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CC7 #C3C73C
analogous
#3C7DC7 #403CC7 #863CC7
triadic
#403CC7 #C7403C #3CC740
tetradic
#403CC7 #C73C7D #C3C73C #3CC786
square
#403CC7 #C73C7D #C3C73C #3CC786
split-complementary
#403CC7 #C7863C #7DC73C
monochromatic
#211E6A #2F2C9A #403CC7 #6F6CD5 #9D9BE2

Accessibility & contrast

On white

7.81
#403CC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#403CC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CC7
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CC7#FFFFFF#000000##FFFFFF
##403CC71.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CB
Deuteranopia (green-blind)
#004CC4
Tritanopia (blue-blind)
#00627D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #403cc7;
/* rgb */ color: rgb(64, 60, 199);
/* oklch */ color: oklch(45.8% 0.207 275.7);
Tailwind
colors: {
  custom: {
    50: '#8773d9',
    500: '#403cc7',
    950: '#000000',
  },
}
SCSS
$custom: #403cc7;
$custom-light: #8773d9;
$custom-dark: #000000;
JSON
{
  "hex": "#403cc7",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 199
  },
  "hsl": {
    "h": 241.727,
    "s": 55.378,
    "l": 50.784
  },
  "oklch": {
    "l": 0.45768,
    "c": 0.20744,
    "h": 275.7
  },
  "luminance": 0.08445
}

Semantic roles & 50–950 ramp

primary
#403CC7
secondary
#CCCE91
accent
#DF49DA
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #403CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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