#403CC5#403CC5

#403CC5 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.6% C 0.205 H 275.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#403CC5
RGBrgb(64, 60, 197)
HSLhsl(242, 54%, 50%)
HSVhsv(242, 70%, 77%)
CMYKcmyk(67.5%, 69.5%, 0%, 22.7%)
CIE-LABlab(34.70, 44.27, -70.59)
CIE-LCHlch(34.70, 83.32, 302.09°)
OKLaboklab(45.58% 0.0208 -0.2039)
OKLCHoklch(45.58% 0.205 275.8)
XYZxyz(13.8049, 8.3517, 53.6970)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CC5 #C1C53C
analogous
#3C7CC5 #403CC5 #843CC5
triadic
#403CC5 #C5403C #3CC540
tetradic
#403CC5 #C53C7C #C1C53C #3CC584
square
#403CC5 #C53C7C #C1C53C #3CC584
split-complementary
#403CC5 #C5843C #7CC53C
monochromatic
#211F68 #302D97 #403CC5 #6E6BD3 #9C9AE1

Accessibility & contrast

On white

7.86
#403CC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#403CC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CC5
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CC5#FFFFFF#000000##FFFFFF
##403CC51.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#004BC2
Tritanopia (blue-blind)
#00617C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #403cc5;
/* rgb */ color: rgb(64, 60, 197);
/* oklch */ color: oklch(45.6% 0.205 275.8);
Tailwind
colors: {
  custom: {
    50: '#8673d8',
    500: '#403cc5',
    950: '#000000',
  },
}
SCSS
$custom: #403cc5;
$custom-light: #8673d8;
$custom-dark: #000000;
JSON
{
  "hex": "#403cc5",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 197
  },
  "hsl": {
    "h": 241.752,
    "s": 54.15,
    "l": 50.392
  },
  "oklch": {
    "l": 0.45577,
    "c": 0.20497,
    "h": 275.8
  },
  "luminance": 0.08353
}

Semantic roles & 50–950 ramp

primary
#403CC5
secondary
#CBCD90
accent
#DE4AD9
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #403CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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