#403EC3#403EC3

#403EC3 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.7% C 0.200 H 275.7°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#403EC3
RGBrgb(64, 62, 195)
HSLhsl(241, 53%, 50%)
HSVhsv(241, 68%, 76%)
CMYKcmyk(67.2%, 68.2%, 0%, 23.5%)
CIE-LABlab(34.95, 42.44, -69.02)
CIE-LCHlch(34.95, 81.02, 301.59°)
OKLaboklab(45.7% 0.0197 -0.1993)
OKLCHoklch(45.7% 0.2 275.7)
XYZxyz(13.6841, 8.4741, 52.5337)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EC3 #C1C33E
analogous
#3E7FC3 #403EC3 #823EC3
triadic
#403EC3 #C3403E #3EC340
tetradic
#403EC3 #C33E7F #C1C33E #3EC382
square
#403EC3 #C33E7F #C1C33E #3EC382
split-complementary
#403EC3 #C3823E #7FC33E
monochromatic
#212067 #302E95 #403EC3 #6E6DD2 #9C9BE0

Accessibility & contrast

On white

7.79
#403EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#403EC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EC3
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EC3#FFFFFF#000000##FFFFFF
##403EC31.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403ec3;
/* rgb */ color: rgb(64, 62, 195);
/* oklch */ color: oklch(45.7% 0.200 275.7);
Tailwind
colors: {
  custom: {
    50: '#8674d6',
    500: '#403ec3',
    950: '#000000',
  },
}
SCSS
$custom: #403ec3;
$custom-light: #8674d6;
$custom-dark: #000000;
JSON
{
  "hex": "#403ec3",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 195
  },
  "hsl": {
    "h": 240.902,
    "s": 52.569,
    "l": 50.392
  },
  "oklch": {
    "l": 0.45699,
    "c": 0.20027,
    "h": 275.7
  },
  "luminance": 0.08475
}

Semantic roles & 50–950 ramp

primary
#403EC3
secondary
#CBCC91
accent
#DC4CDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0814
muted
#7D7B83

Preview Lab

Preview with #403EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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