#403CCB#403CCB

#403CCB is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.2% C 0.212 H 275.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#403CCB
RGBrgb(64, 60, 203)
HSLhsl(242, 58%, 52%)
HSVhsv(242, 70%, 80%)
CMYKcmyk(68.5%, 70.4%, 0%, 20.4%)
CIE-LABlab(35.27, 46.23, -73.17)
CIE-LCHlch(35.27, 86.55, 302.29°)
OKLaboklab(46.15% 0.0199 -0.2114)
OKLCHoklch(46.15% 0.212 275.4)
XYZxyz(14.5062, 8.6322, 57.3900)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CCB #C7CB3C
analogous
#3C80CB #403CCB #883CCB
triadic
#403CCB #CB403C #3CCB40
tetradic
#403CCB #CB3C80 #C7CB3C #3CCB88
square
#403CCB #CB3C80 #C7CB3C #3CCB88
split-complementary
#403CCB #CB883C #80CB3C
monochromatic
#201E6F #2E2A9F #403CCB #6F6CD8 #9F9DE5

Accessibility & contrast

On white

7.70
#403CCB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#403CCB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CCB
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CCB#FFFFFF#000000##FFFFFF
##403CCB1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CF
Deuteranopia (green-blind)
#004CC8
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #403ccb;
/* rgb */ color: rgb(64, 60, 203);
/* oklch */ color: oklch(46.2% 0.212 275.4);
Tailwind
colors: {
  custom: {
    50: '#8773dc',
    500: '#403ccb',
    950: '#000000',
  },
}
SCSS
$custom: #403ccb;
$custom-light: #8773dc;
$custom-dark: #000000;
JSON
{
  "hex": "#403ccb",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 203
  },
  "hsl": {
    "h": 241.678,
    "s": 57.895,
    "l": 51.569
  },
  "oklch": {
    "l": 0.4615,
    "c": 0.21236,
    "h": 275.4
  },
  "luminance": 0.08634
}

Semantic roles & 50–950 ramp

primary
#403CCB
secondary
#CFD192
accent
#E147DD
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #403CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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