#402DCE#402DCE

#402DCE is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 44.5% C 0.230 H 276.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#402DCE
RGBrgb(64, 45, 206)
HSLhsl(247, 64%, 49%)
HSVhsv(247, 78%, 81%)
CMYKcmyk(68.9%, 78.2%, 0%, 19.2%)
CIE-LABlab(32.75, 55.12, -79.06)
CIE-LCHlch(32.75, 96.38, 304.88°)
OKLaboklab(44.46% 0.0272 -0.2285)
OKLCHoklch(44.46% 0.23 276.8)
XYZxyz(14.1897, 7.4217, 59.0653)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DCE #BBCE2D
analogous
#2D6BCE #402DCE #912DCE
triadic
#402DCE #CE402D #2DCE40
tetradic
#402DCE #CE2D6B #BBCE2D #2DCE91
square
#402DCE #CE2D6B #BBCE2D #2DCE91
split-complementary
#402DCE #CE912D #6BCE2D
monochromatic
#21176A #30229C #402DCE #6C5DDC #998FE7

Accessibility & contrast

On white

8.45
#402DCE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#402DCE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DCE
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DCE#FFFFFF#000000##FFFFFF
##402DCE1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D2
Deuteranopia (green-blind)
#0046CB
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #402dce;
/* rgb */ color: rgb(64, 45, 206);
/* oklch */ color: oklch(44.5% 0.230 276.8);
Tailwind
colors: {
  custom: {
    50: '#896ade',
    500: '#402dce',
    950: '#000000',
  },
}
SCSS
$custom: #402dce;
$custom-light: #896ade;
$custom-dark: #000000;
JSON
{
  "hex": "#402dce",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 206
  },
  "hsl": {
    "h": 247.081,
    "s": 64.143,
    "l": 49.216
  },
  "oklch": {
    "l": 0.44459,
    "c": 0.23012,
    "h": 276.8
  },
  "luminance": 0.07423
}

Semantic roles & 50–950 ramp

primary
#402DCE
secondary
#C8D186
accent
#E741D3
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #402DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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