#403CC4#403CC4

#403CC4 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.5% C 0.204 H 275.9°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#403CC4
RGBrgb(64, 60, 196)
HSLhsl(242, 54%, 50%)
HSVhsv(242, 69%, 77%)
CMYKcmyk(67.3%, 69.4%, 0%, 23.1%)
CIE-LABlab(34.61, 43.94, -70.16)
CIE-LCHlch(34.61, 82.78, 302.06°)
OKLaboklab(45.48% 0.0209 -0.2026)
OKLCHoklch(45.48% 0.204 275.9)
XYZxyz(13.6907, 8.3060, 53.0956)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CC4 #C0C43C
analogous
#3C7CC4 #403CC4 #843CC4
triadic
#403CC4 #C4403C #3CC440
tetradic
#403CC4 #C43C7C #C0C43C #3CC484
square
#403CC4 #C43C7C #C0C43C #3CC484
split-complementary
#403CC4 #C4843C #7CC43C
monochromatic
#211F67 #302D96 #403CC4 #6E6BD2 #9C9AE0

Accessibility & contrast

On white

7.89
#403CC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#403CC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CC4
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CC4#FFFFFF#000000##FFFFFF
##403CC41.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#004BC1
Tritanopia (blue-blind)
#00617B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #403cc4;
/* rgb */ color: rgb(64, 60, 196);
/* oklch */ color: oklch(45.5% 0.204 275.9);
Tailwind
colors: {
  custom: {
    50: '#8673d7',
    500: '#403cc4',
    950: '#000000',
  },
}
SCSS
$custom: #403cc4;
$custom-light: #8673d7;
$custom-dark: #000000;
JSON
{
  "hex": "#403cc4",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 196
  },
  "hsl": {
    "h": 241.765,
    "s": 53.543,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45483,
    "c": 0.20372,
    "h": 275.9
  },
  "luminance": 0.08307
}

Semantic roles & 50–950 ramp

primary
#403CC4
secondary
#CBCC90
accent
#DD4BD9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #403CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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