#402E83#402E83

#402E83 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.4% C 0.136 H 287.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#402E83
RGBrgb(64, 46, 131)
HSLhsl(253, 48%, 35%)
HSVhsv(253, 65%, 51%)
CMYKcmyk(51.1%, 64.9%, 0%, 48.6%)
CIE-LABlab(25.81, 31.22, -45.26)
CIE-LCHlch(25.81, 54.98, 304.59°)
OKLaboklab(37.37% 0.0413 -0.1296)
OKLCHoklch(37.37% 0.136 287.7)
XYZxyz(7.1869, 4.6823, 21.9934)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E83 #71832E
analogous
#2E4683 #402E83 #6B2E83
triadic
#402E83 #83402E #2E8340
tetradic
#402E83 #832E46 #71832E #2E836B
square
#402E83 #832E46 #71832E #2E836B
split-complementary
#402E83 #836B2E #46832E
monochromatic
#140E28 #2A1E56 #402E83 #563EB0 #7963C8

Accessibility & contrast

On white

10.84
#402E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#402E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E83
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E83#FFFFFF#000000##FFFFFF
##402E831.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F86
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#294254
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #402e83;
/* rgb */ color: rgb(64, 46, 131);
/* oklch */ color: oklch(37.4% 0.136 287.7);
Tailwind
colors: {
  custom: {
    50: '#7b68a8',
    500: '#402e83',
    950: '#000000',
  },
}
SCSS
$custom: #402e83;
$custom-light: #7b68a8;
$custom-dark: #000000;
JSON
{
  "hex": "#402e83",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 131
  },
  "hsl": {
    "h": 252.706,
    "s": 48.023,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37368,
    "c": 0.13606,
    "h": 287.7
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#402E83
secondary
#9EAF5E
accent
#D850BB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #402E83

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

Preview Lab → · Contrast checker → · Palette generator →

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