#402EC1#402EC1

#402EC1 is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.2% C 0.214 H 278.0°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#402EC1
RGBrgb(64, 46, 193)
HSLhsl(247, 62%, 47%)
HSVhsv(247, 76%, 76%)
CMYKcmyk(66.8%, 76.2%, 0%, 24.3%)
CIE-LABlab(31.56, 50.70, -73.42)
CIE-LCHlch(31.56, 89.23, 304.63°)
OKLaboklab(43.23% 0.03 -0.2121)
OKLCHoklch(43.23% 0.214 278)
XYZxyz(12.7139, 6.8931, 51.1022)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EC1 #AFC12E
analogous
#2E66C1 #402EC1 #8A2EC1
triadic
#402EC1 #C1402E #2EC140
tetradic
#402EC1 #C12E66 #AFC12E #2EC18A
square
#402EC1 #C12E66 #AFC12E #2EC18A
split-complementary
#402EC1 #C18A2E #66C12E
monochromatic
#1F165E #302290 #402EC1 #6556D7 #9287E2

Accessibility & contrast

On white

8.83
#402EC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#402EC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EC1
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EC1#FFFFFF#000000##FFFFFF
##402EC11.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C5
Deuteranopia (green-blind)
#0044BE
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #402ec1;
/* rgb */ color: rgb(64, 46, 193);
/* oklch */ color: oklch(43.2% 0.214 278.0);
Tailwind
colors: {
  custom: {
    50: '#866ad5',
    500: '#402ec1',
    950: '#000000',
  },
}
SCSS
$custom: #402ec1;
$custom-light: #866ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#402ec1",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 193
  },
  "hsl": {
    "h": 247.347,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43227,
    "c": 0.21419,
    "h": 278
  },
  "luminance": 0.06894
}

Semantic roles & 50–950 ramp

primary
#402EC1
secondary
#C3CC7F
accent
#E543D1
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #402EC1

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

Preview Lab → · Contrast checker → · Palette generator →

#402EC1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva