#403DC2#403DC2

#403DC2 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.4% C 0.200 H 275.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#403DC2
RGBrgb(64, 61, 194)
HSLhsl(241, 52%, 50%)
HSVhsv(241, 69%, 76%)
CMYKcmyk(67%, 68.6%, 0%, 23.9%)
CIE-LABlab(34.64, 42.70, -68.94)
CIE-LCHlch(34.64, 81.09, 301.77°)
OKLaboklab(45.45% 0.0206 -0.1991)
OKLCHoklch(45.45% 0.2 275.9)
XYZxyz(13.5175, 8.3213, 51.9223)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DC2 #BFC23D
analogous
#3D7DC2 #403DC2 #823DC2
triadic
#403DC2 #C2403D #3DC240
tetradic
#403DC2 #C23D7D #BFC23D #3DC282
square
#403DC2 #C23D7D #BFC23D #3DC282
split-complementary
#403DC2 #C2823D #7DC23D
monochromatic
#212065 #312E93 #403DC2 #6E6CD1 #9C9ADF

Accessibility & contrast

On white

7.88
#403DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#403DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DC2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DC2#FFFFFF#000000##FFFFFF
##403DC21.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#00617B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #403dc2;
/* rgb */ color: rgb(64, 61, 194);
/* oklch */ color: oklch(45.4% 0.200 275.9);
Tailwind
colors: {
  custom: {
    50: '#8573d6',
    500: '#403dc2',
    950: '#000000',
  },
}
SCSS
$custom: #403dc2;
$custom-light: #8573d6;
$custom-dark: #000000;
JSON
{
  "hex": "#403dc2",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 194
  },
  "hsl": {
    "h": 241.353,
    "s": 52.157,
    "l": 50
  },
  "oklch": {
    "l": 0.45449,
    "c": 0.20013,
    "h": 275.9
  },
  "luminance": 0.08323
}

Semantic roles & 50–950 ramp

primary
#403DC2
secondary
#CACB90
accent
#DC4CD8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0814
muted
#7D7B83

Preview Lab

Preview with #403DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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