#402E86#402E86

#402E86 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.6% C 0.140 H 287.0°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#402E86
RGBrgb(64, 46, 134)
HSLhsl(252, 49%, 35%)
HSVhsv(252, 66%, 53%)
CMYKcmyk(52.2%, 65.7%, 0%, 47.5%)
CIE-LABlab(26.05, 32.17, -46.74)
CIE-LCHlch(26.05, 56.74, 304.54°)
OKLaboklab(37.62% 0.041 -0.134)
OKLCHoklch(37.62% 0.14 287)
XYZxyz(7.3932, 4.7649, 23.0798)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E86 #74862E
analogous
#2E4886 #402E86 #6C2E86
triadic
#402E86 #86402E #2E8640
tetradic
#402E86 #862E48 #74862E #2E866C
square
#402E86 #862E48 #74862E #2E866C
split-complementary
#402E86 #866C2E #48862E
monochromatic
#140F2B #2A1E58 #402E86 #563EB4 #7964CA

Accessibility & contrast

On white

10.75
#402E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#402E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E86
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E86#FFFFFF#000000##FFFFFF
##402E861.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#264355
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #402e86;
/* rgb */ color: rgb(64, 46, 134);
/* oklch */ color: oklch(37.6% 0.140 287.0);
Tailwind
colors: {
  custom: {
    50: '#7c68aa',
    500: '#402e86',
    950: '#000000',
  },
}
SCSS
$custom: #402e86;
$custom-light: #7c68aa;
$custom-dark: #000000;
JSON
{
  "hex": "#402e86",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 252.273,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37622,
    "c": 0.14013,
    "h": 287
  },
  "luminance": 0.04765
}

Semantic roles & 50–950 ramp

primary
#402E86
secondary
#A0B15F
accent
#D84FBC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #402E86

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

Preview Lab → · Contrast checker → · Palette generator →

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