#402DD0#402DD0

#402DD0 is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.7% C 0.232 H 276.6°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#402DD0
RGBrgb(64, 45, 208)
HSLhsl(247, 64%, 50%)
HSVhsv(247, 78%, 82%)
CMYKcmyk(69.2%, 78.4%, 0%, 18.4%)
CIE-LABlab(32.96, 55.72, -79.87)
CIE-LCHlch(32.96, 97.39, 304.90°)
OKLaboklab(44.67% 0.0267 -0.2308)
OKLCHoklch(44.67% 0.232 276.6)
XYZxyz(14.4342, 7.5195, 60.3530)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DD0 #BDD02D
analogous
#2D6BD0 #402DD0 #922DD0
triadic
#402DD0 #D0402D #2DD040
tetradic
#402DD0 #D02D6B #BDD02D #2DD092
square
#402DD0 #D02D6B #BDD02D #2DD092
split-complementary
#402DD0 #D0922D #6BD02D
monochromatic
#21176B #31229E #402DD0 #6D5EDC #9A90E7

Accessibility & contrast

On white

8.39
#402DD0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#402DD0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DD0
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DD0#FFFFFF#000000##FFFFFF
##402DD01.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D5
Deuteranopia (green-blind)
#0046CD
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #402dd0;
/* rgb */ color: rgb(64, 45, 208);
/* oklch */ color: oklch(44.7% 0.232 276.6);
Tailwind
colors: {
  custom: {
    50: '#8a6ae0',
    500: '#402dd0',
    950: '#000000',
  },
}
SCSS
$custom: #402dd0;
$custom-light: #8a6ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#402dd0",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 208
  },
  "hsl": {
    "h": 246.994,
    "s": 64.427,
    "l": 49.608
  },
  "oklch": {
    "l": 0.44671,
    "c": 0.23239,
    "h": 276.6
  },
  "luminance": 0.07521
}

Semantic roles & 50–950 ramp

primary
#402DD0
secondary
#C9D287
accent
#E740D4
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #402DD0

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

Preview Lab → · Contrast checker → · Palette generator →

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