#402CC2#402CC2

#402CC2 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.1% C 0.217 H 278.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#402CC2
RGBrgb(64, 44, 194)
HSLhsl(248, 63%, 47%)
HSVhsv(248, 77%, 76%)
CMYKcmyk(67%, 77.3%, 0%, 23.9%)
CIE-LABlab(31.31, 52.01, -74.42)
CIE-LCHlch(31.31, 90.80, 304.95°)
OKLaboklab(43.08% 0.0308 -0.215)
OKLCHoklch(43.08% 0.217 278.1)
XYZxyz(12.7495, 6.7853, 51.6663)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CC2 #AEC22C
analogous
#2C63C2 #402CC2 #8B2CC2
triadic
#402CC2 #C2402C #2CC240
tetradic
#402CC2 #C22C63 #AEC22C #2CC28B
square
#402CC2 #C22C63 #AEC22C #2CC28B
split-complementary
#402CC2 #C28B2C #63C22C
monochromatic
#1F155E #302190 #402CC2 #6553D8 #9285E3

Accessibility & contrast

On white

8.91
#402CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#402CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CC2
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CC2#FFFFFF#000000##FFFFFF
##402CC21.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC6
Deuteranopia (green-blind)
#0043BF
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #402cc2;
/* rgb */ color: rgb(64, 44, 194);
/* oklch */ color: oklch(43.1% 0.217 278.1);
Tailwind
colors: {
  custom: {
    50: '#8769d6',
    500: '#402cc2',
    950: '#000000',
  },
}
SCSS
$custom: #402cc2;
$custom-light: #8769d6;
$custom-dark: #000000;
JSON
{
  "hex": "#402cc2",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 194
  },
  "hsl": {
    "h": 248,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43083,
    "c": 0.21717,
    "h": 278.1
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

primary
#402CC2
secondary
#C2CD7D
accent
#E642D0
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #402CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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