#402ED0#402ED0

#402ED0 is a dark, highly saturated blue. Relative luminance 0.076; OKLCH L 44.8% C 0.232 H 276.5°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#402ED0
RGBrgb(64, 46, 208)
HSLhsl(247, 64%, 50%)
HSVhsv(247, 78%, 82%)
CMYKcmyk(69.2%, 77.9%, 0%, 18.4%)
CIE-LABlab(33.13, 55.24, -79.60)
CIE-LCHlch(33.13, 96.89, 304.76°)
OKLaboklab(44.79% 0.0263 -0.2301)
OKLCHoklch(44.79% 0.232 276.5)
XYZxyz(14.4728, 7.5967, 60.3659)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402ED0 #BED02E
analogous
#2E6DD0 #402ED0 #912ED0
triadic
#402ED0 #D0402E #2ED040
tetradic
#402ED0 #D02E6D #BED02E #2ED091
square
#402ED0 #D02E6D #BED02E #2ED091
split-complementary
#402ED0 #D0912E #6DD02E
monochromatic
#21186C #31239E #402ED0 #6D5FDC #9B92E7

Accessibility & contrast

On white

8.33
#402ED0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#402ED0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402ED0
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402ED0#FFFFFF#000000##FFFFFF
##402ED01.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D5
Deuteranopia (green-blind)
#0047CD
Tritanopia (blue-blind)
#005F7F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #402ed0;
/* rgb */ color: rgb(64, 46, 208);
/* oklch */ color: oklch(44.8% 0.232 276.5);
Tailwind
colors: {
  custom: {
    50: '#8a6be0',
    500: '#402ed0',
    950: '#000000',
  },
}
SCSS
$custom: #402ed0;
$custom-light: #8a6be0;
$custom-dark: #000000;
JSON
{
  "hex": "#402ed0",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 208
  },
  "hsl": {
    "h": 246.667,
    "s": 63.78,
    "l": 49.804
  },
  "oklch": {
    "l": 0.44787,
    "c": 0.23156,
    "h": 276.5
  },
  "luminance": 0.07598
}

Semantic roles & 50–950 ramp

primary
#402ED0
secondary
#C9D288
accent
#E741D4
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #402ED0

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

Preview Lab → · Contrast checker → · Palette generator →

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