#403ED4#403ED4

#403ED4 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.3% C 0.221 H 274.5°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#403ED4
RGBrgb(64, 62, 212)
HSLhsl(241, 64%, 54%)
HSVhsv(241, 71%, 83%)
CMYKcmyk(69.8%, 70.8%, 0%, 16.9%)
CIE-LABlab(36.53, 48.01, -76.30)
CIE-LCHlch(36.53, 90.14, 302.18°)
OKLaboklab(47.31% 0.0173 -0.2206)
OKLCHoklch(47.31% 0.221 274.5)
XYZxyz(15.7167, 9.2872, 63.2389)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403ED4 #D2D43E
analogous
#3E87D4 #403ED4 #8B3ED4
triadic
#403ED4 #D4403E #3ED440
tetradic
#403ED4 #D43E87 #D2D43E #3ED48B
square
#403ED4 #D43E87 #D2D43E #3ED48B
split-complementary
#403ED4 #D48B3E #87D43E
monochromatic
#1D1C7C #2927AE #403ED4 #7270DF #A3A2EA

Accessibility & contrast

On white

7.35
#403ED4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#403ED4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403ED4
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403ED4#FFFFFF#000000##FFFFFF
##403ED41.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD8
Deuteranopia (green-blind)
#004FD1
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #403ed4;
/* rgb */ color: rgb(64, 62, 212);
/* oklch */ color: oklch(47.3% 0.221 274.5);
Tailwind
colors: {
  custom: {
    50: '#8975e2',
    500: '#403ed4',
    950: '#000000',
  },
}
SCSS
$custom: #403ed4;
$custom-light: #8975e2;
$custom-dark: #000000;
JSON
{
  "hex": "#403ed4",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 212
  },
  "hsl": {
    "h": 240.8,
    "s": 63.559,
    "l": 53.725
  },
  "oklch": {
    "l": 0.47314,
    "c": 0.22125,
    "h": 274.5
  },
  "luminance": 0.09289
}

Semantic roles & 50–950 ramp

primary
#403ED4
secondary
#D6D797
accent
#E741E4
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #403ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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