#402ACA#402ACA

#402ACA is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.7% C 0.228 H 277.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#402ACA
RGBrgb(64, 42, 202)
HSLhsl(248, 66%, 48%)
HSVhsv(248, 79%, 79%)
CMYKcmyk(68.3%, 79.2%, 0%, 20.8%)
CIE-LABlab(31.83, 55.36, -78.26)
CIE-LCHlch(31.83, 95.86, 305.28°)
OKLaboklab(43.69% 0.0296 -0.2261)
OKLCHoklch(43.69% 0.228 277.5)
XYZxyz(13.5995, 7.0090, 56.5018)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402ACA #B4CA2A
analogous
#2A64CA #402ACA #902ACA
triadic
#402ACA #CA402A #2ACA40
tetradic
#402ACA #CA2A64 #B4CA2A #2ACA90
square
#402ACA #CA2A64 #B4CA2A #2ACA90
split-complementary
#402ACA #CA902A #64CA2A
monochromatic
#201565 #301F97 #402ACA #6855DC #9588E6

Accessibility & contrast

On white

8.74
#402ACA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#402ACA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402ACA
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402ACA#FFFFFF#000000##FFFFFF
##402ACA1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CE
Deuteranopia (green-blind)
#0044C7
Tritanopia (blue-blind)
#005B7A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #402aca;
/* rgb */ color: rgb(64, 42, 202);
/* oklch */ color: oklch(43.7% 0.228 277.5);
Tailwind
colors: {
  custom: {
    50: '#8968dc',
    500: '#402aca',
    950: '#000000',
  },
}
SCSS
$custom: #402aca;
$custom-light: #8968dc;
$custom-dark: #000000;
JSON
{
  "hex": "#402aca",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 202
  },
  "hsl": {
    "h": 248.25,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.43692,
    "c": 0.22805,
    "h": 277.5
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#402ACA
secondary
#C5D080
accent
#E93FD1
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #402ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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