#403DC5#403DC5

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

Color values

HEX#403DC5
RGBrgb(64, 61, 197)
HSLhsl(241, 54%, 51%)
HSVhsv(241, 69%, 77%)
CMYKcmyk(67.5%, 69%, 0%, 22.7%)
CIE-LABlab(34.92, 43.69, -70.24)
CIE-LCHlch(34.92, 82.72, 301.88°)
OKLaboklab(45.73% 0.0201 -0.2029)
OKLCHoklch(45.73% 0.204 275.7)
XYZxyz(13.8578, 8.4574, 53.7147)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DC5 #C2C53D
analogous
#3D7EC5 #403DC5 #843DC5
triadic
#403DC5 #C5403D #3DC540
tetradic
#403DC5 #C53D7E #C2C53D #3DC584
square
#403DC5 #C53D7E #C2C53D #3DC584
split-complementary
#403DC5 #C5843D #7EC53D
monochromatic
#211F68 #302D98 #403DC5 #6E6CD3 #9D9BE1

Accessibility & contrast

On white

7.80
#403DC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#403DC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DC5
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DC5#FFFFFF#000000##FFFFFF
##403DC51.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#004CC2
Tritanopia (blue-blind)
#00627C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #403dc5;
/* rgb */ color: rgb(64, 61, 197);
/* oklch */ color: oklch(45.7% 0.204 275.7);
Tailwind
colors: {
  custom: {
    50: '#8674d8',
    500: '#403dc5',
    950: '#000000',
  },
}
SCSS
$custom: #403dc5;
$custom-light: #8674d8;
$custom-dark: #000000;
JSON
{
  "hex": "#403dc5",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 197
  },
  "hsl": {
    "h": 241.324,
    "s": 53.968,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45731,
    "c": 0.20388,
    "h": 275.7
  },
  "luminance": 0.08459
}

Semantic roles & 50–950 ramp

primary
#403DC5
secondary
#CCCD91
accent
#DD4ADA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #403DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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