#403CC2#403CC2

#403CC2 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.3% C 0.201 H 276.1°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#403CC2
RGBrgb(64, 60, 194)
HSLhsl(242, 53%, 50%)
HSVhsv(242, 69%, 76%)
CMYKcmyk(67%, 69.1%, 0%, 23.9%)
CIE-LABlab(34.43, 43.29, -69.29)
CIE-LCHlch(34.43, 81.70, 301.99°)
OKLaboklab(45.29% 0.0212 -0.2001)
OKLCHoklch(45.29% 0.201 276.1)
XYZxyz(13.4646, 8.2156, 51.9047)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CC2 #BEC23C
analogous
#3C7BC2 #403CC2 #833CC2
triadic
#403CC2 #C2403C #3CC240
tetradic
#403CC2 #C23C7B #BEC23C #3CC283
square
#403CC2 #C23C7B #BEC23C #3CC283
split-complementary
#403CC2 #C2833C #7BC23C
monochromatic
#211F65 #312E93 #403CC2 #6D6AD1 #9B99DF

Accessibility & contrast

On white

7.94
#403CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#403CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CC2
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CC2#FFFFFF#000000##FFFFFF
##403CC21.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#00607A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #403cc2;
/* rgb */ color: rgb(64, 60, 194);
/* oklch */ color: oklch(45.3% 0.201 276.1);
Tailwind
colors: {
  custom: {
    50: '#8673d6',
    500: '#403cc2',
    950: '#000000',
  },
}
SCSS
$custom: #403cc2;
$custom-light: #8673d6;
$custom-dark: #000000;
JSON
{
  "hex": "#403cc2",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 194
  },
  "hsl": {
    "h": 241.791,
    "s": 52.756,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45294,
    "c": 0.20123,
    "h": 276.1
  },
  "luminance": 0.08217
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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