#402EAE#402EAE

#402EAE is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.3% C 0.191 H 280.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#402EAE
RGBrgb(64, 46, 174)
HSLhsl(248, 58%, 43%)
HSVhsv(248, 74%, 68%)
CMYKcmyk(63.2%, 73.6%, 0%, 31.8%)
CIE-LABlab(29.66, 44.83, -65.28)
CIE-LCHlch(29.66, 79.19, 304.48°)
OKLaboklab(41.32% 0.0343 -0.1883)
OKLCHoklch(41.32% 0.191 280.3)
XYZxyz(10.7289, 6.0992, 40.6481)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EAE #9CAE2E
analogous
#2E5CAE #402EAE #802EAE
triadic
#402EAE #AE402E #2EAE40
tetradic
#402EAE #AE2E5C #9CAE2E #2EAE80
square
#402EAE #AE2E5C #9CAE2E #2EAE80
split-complementary
#402EAE #AE802E #5CAE2E
monochromatic
#1C144D #2E217E #402EAE #5D4ACF #887ADC

Accessibility & contrast

On white

9.46
#402EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#402EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EAE
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EAE#FFFFFF#000000##FFFFFF
##402EAE1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402eae;
/* rgb */ color: rgb(64, 46, 174);
/* oklch */ color: oklch(41.3% 0.191 280.3);
Tailwind
colors: {
  custom: {
    50: '#8369c7',
    500: '#402eae',
    950: '#000000',
  },
}
SCSS
$custom: #402eae;
$custom-light: #8369c7;
$custom-dark: #000000;
JSON
{
  "hex": "#402eae",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 248.438,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41316,
    "c": 0.19145,
    "h": 280.3
  },
  "luminance": 0.061
}

Semantic roles & 50–950 ramp

primary
#402EAE
secondary
#B9C474
accent
#E146CC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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