#403FC2#403FC2

#403FC2 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.8% C 0.198 H 275.6°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#403FC2
RGBrgb(64, 63, 194)
HSLhsl(240, 52%, 50%)
HSVhsv(240, 68%, 76%)
CMYKcmyk(67%, 67.5%, 0%, 23.9%)
CIE-LABlab(35.08, 41.51, -68.22)
CIE-LCHlch(35.08, 79.86, 301.32°)
OKLaboklab(45.77% 0.0192 -0.197)
OKLCHoklch(45.77% 0.198 275.6)
XYZxyz(13.6263, 8.5388, 51.9585)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FC2 #C1C23F
analogous
#3F7FC2 #403FC2 #813FC2
triadic
#403FC2 #C2403F #3FC240
tetradic
#403FC2 #C23F7F #C1C23F #3FC281
square
#403FC2 #C23F7F #C1C23F #3FC281
split-complementary
#403FC2 #C2813F #7FC23F
monochromatic
#212066 #302F95 #403FC2 #6E6DD1 #9C9CE0

Accessibility & contrast

On white

7.75
#403FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#403FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FC2
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FC2#FFFFFF#000000##FFFFFF
##403FC21.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #403fc2;
/* rgb */ color: rgb(64, 63, 194);
/* oklch */ color: oklch(45.8% 0.198 275.6);
Tailwind
colors: {
  custom: {
    50: '#8575d6',
    500: '#403fc2',
    950: '#000000',
  },
}
SCSS
$custom: #403fc2;
$custom-light: #8575d6;
$custom-dark: #000000;
JSON
{
  "hex": "#403fc2",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 194
  },
  "hsl": {
    "h": 240.458,
    "s": 51.779,
    "l": 50.392
  },
  "oklch": {
    "l": 0.45765,
    "c": 0.1979,
    "h": 275.6
  },
  "luminance": 0.0854
}

Semantic roles & 50–950 ramp

primary
#403FC2
secondary
#CBCC91
accent
#DB4DDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #403FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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