#402CCD#402CCD

#402CCD is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.2% C 0.230 H 277.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#402CCD
RGBrgb(64, 44, 205)
HSLhsl(247, 65%, 49%)
HSVhsv(247, 79%, 80%)
CMYKcmyk(68.8%, 78.5%, 0%, 19.6%)
CIE-LABlab(32.48, 55.31, -78.93)
CIE-LCHlch(32.48, 96.38, 305.02°)
OKLaboklab(44.24% 0.0279 -0.2281)
OKLCHoklch(44.24% 0.23 277)
XYZxyz(14.0309, 7.2979, 58.4150)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CCD #B9CD2C
analogous
#2C69CD #402CCD #912CCD
triadic
#402CCD #CD402C #2CCD40
tetradic
#402CCD #CD2C69 #B9CD2C #2CCD91
square
#402CCD #CD2C69 #B9CD2C #2CCD91
split-complementary
#402CCD #CD912C #69CD2C
monochromatic
#211668 #30219B #402CCD #6B5BDC #988DE7

Accessibility & contrast

On white

8.54
#402CCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#402CCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CCD
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CCD#FFFFFF#000000##FFFFFF
##402CCD1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053D1
Deuteranopia (green-blind)
#0045CA
Tritanopia (blue-blind)
#005D7C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #402ccd;
/* rgb */ color: rgb(64, 44, 205);
/* oklch */ color: oklch(44.2% 0.230 277.0);
Tailwind
colors: {
  custom: {
    50: '#896ade',
    500: '#402ccd',
    950: '#000000',
  },
}
SCSS
$custom: #402ccd;
$custom-light: #896ade;
$custom-dark: #000000;
JSON
{
  "hex": "#402ccd",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 205
  },
  "hsl": {
    "h": 247.453,
    "s": 64.659,
    "l": 48.824
  },
  "oklch": {
    "l": 0.44238,
    "c": 0.22981,
    "h": 277
  },
  "luminance": 0.07299
}

Semantic roles & 50–950 ramp

primary
#402CCD
secondary
#C7D184
accent
#E840D3
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #402CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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