#402DAE#402DAE

#402DAE is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.2% C 0.192 H 280.5°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#402DAE
RGBrgb(64, 45, 174)
HSLhsl(249, 59%, 43%)
HSVhsv(249, 74%, 68%)
CMYKcmyk(63.2%, 74.1%, 0%, 31.8%)
CIE-LABlab(29.47, 45.37, -65.60)
CIE-LCHlch(29.47, 79.76, 304.67°)
OKLaboklab(41.18% 0.035 -0.1893)
OKLCHoklch(41.18% 0.192 280.5)
XYZxyz(10.6903, 6.0219, 40.6352)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DAE #9BAE2D
analogous
#2D5BAE #402DAE #802DAE
triadic
#402DAE #AE402D #2DAE40
tetradic
#402DAE #AE2D5B #9BAE2D #2DAE80
square
#402DAE #AE2D5B #9BAE2D #2DAE80
split-complementary
#402DAE #AE802D #5BAE2D
monochromatic
#1C144D #2E207D #402DAE #5C48D0 #8879DC

Accessibility & contrast

On white

9.53
#402DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#402DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DAE
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DAE#FFFFFF#000000##FFFFFF
##402DAE1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0041AC
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402dae;
/* rgb */ color: rgb(64, 45, 174);
/* oklch */ color: oklch(41.2% 0.192 280.5);
Tailwind
colors: {
  custom: {
    50: '#8369c7',
    500: '#402dae',
    950: '#000000',
  },
}
SCSS
$custom: #402dae;
$custom-light: #8369c7;
$custom-dark: #000000;
JSON
{
  "hex": "#402dae",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 174
  },
  "hsl": {
    "h": 248.837,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41179,
    "c": 0.19248,
    "h": 280.5
  },
  "luminance": 0.06023
}

Semantic roles & 50–950 ramp

primary
#402DAE
secondary
#B8C472
accent
#E246CB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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