#403BC4#403BC4

#403BC4 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.3% C 0.205 H 276.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#403BC4
RGBrgb(64, 59, 196)
HSLhsl(242, 54%, 50%)
HSVhsv(242, 70%, 77%)
CMYKcmyk(67.3%, 69.9%, 0%, 23.1%)
CIE-LABlab(34.40, 44.52, -70.51)
CIE-LCHlch(34.40, 83.39, 302.27°)
OKLaboklab(45.33% 0.0216 -0.2037)
OKLCHoklch(45.33% 0.205 276.1)
XYZxyz(13.6389, 8.2022, 53.0783)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BC4 #BFC43B
analogous
#3B7AC4 #403BC4 #853BC4
triadic
#403BC4 #C4403B #3BC440
tetradic
#403BC4 #C43B7A #BFC43B #3BC485
square
#403BC4 #C43B7A #BFC43B #3BC485
split-complementary
#403BC4 #C4853B #7AC43B
monochromatic
#211F66 #312D95 #403BC4 #6E6AD2 #9C99E0

Accessibility & contrast

On white

7.95
#403BC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#403BC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BC4
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BC4#FFFFFF#000000##FFFFFF
##403BC41.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403bc4;
/* rgb */ color: rgb(64, 59, 196);
/* oklch */ color: oklch(45.3% 0.205 276.1);
Tailwind
colors: {
  custom: {
    50: '#8672d7',
    500: '#403bc4',
    950: '#000000',
  },
}
SCSS
$custom: #403bc4;
$custom-light: #8672d7;
$custom-dark: #000000;
JSON
{
  "hex": "#403bc4",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 196
  },
  "hsl": {
    "h": 242.19,
    "s": 53.725,
    "l": 50
  },
  "oklch": {
    "l": 0.45331,
    "c": 0.2048,
    "h": 276.1
  },
  "luminance": 0.08203
}

Semantic roles & 50–950 ramp

primary
#403BC4
secondary
#CACC8F
accent
#DD4BD8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #403BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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