#402EAD#402EAD

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

Color values

HEX#402EAD
RGBrgb(64, 46, 173)
HSLhsl(249, 58%, 43%)
HSVhsv(249, 73%, 68%)
CMYKcmyk(63%, 73.4%, 0%, 32.2%)
CIE-LABlab(29.56, 44.52, -64.84)
CIE-LCHlch(29.56, 78.65, 304.47°)
OKLaboklab(41.22% 0.0345 -0.1871)
OKLCHoklch(41.22% 0.19 280.5)
XYZxyz(10.6318, 6.0603, 40.1366)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EAD #9BAD2E
analogous
#2E5BAD #402EAD #7F2EAD
triadic
#402EAD #AD402E #2EAD40
tetradic
#402EAD #AD2E5B #9BAD2E #2EAD7F
square
#402EAD #AD2E5B #9BAD2E #2EAD7F
split-complementary
#402EAD #AD7F2E #5BAD2E
monochromatic
#1C144C #2E217D #402EAD #5C49CF #887ADC

Accessibility & contrast

On white

9.49
#402EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#402EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EAD
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EAD#FFFFFF#000000##FFFFFF
##402EAD1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#0041AB
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #402ead;
/* rgb */ color: rgb(64, 46, 173);
/* oklch */ color: oklch(41.2% 0.190 280.5);
Tailwind
colors: {
  custom: {
    50: '#8269c7',
    500: '#402ead',
    950: '#000000',
  },
}
SCSS
$custom: #402ead;
$custom-light: #8269c7;
$custom-dark: #000000;
JSON
{
  "hex": "#402ead",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 173
  },
  "hsl": {
    "h": 248.504,
    "s": 57.991,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41218,
    "c": 0.19022,
    "h": 280.5
  },
  "luminance": 0.06061
}

Semantic roles & 50–950 ramp

primary
#402EAD
secondary
#B8C473
accent
#E147CB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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