#402E76#402E76

#402E76 is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.3% C 0.118 H 290.9°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#402E76
RGBrgb(64, 46, 118)
HSLhsl(255, 44%, 32%)
HSVhsv(255, 61%, 46%)
CMYKcmyk(45.8%, 61%, 0%, 53.7%)
CIE-LABlab(24.80, 27.13, -38.68)
CIE-LCHlch(24.80, 47.25, 305.04°)
OKLaboklab(36.31% 0.042 -0.1103)
OKLCHoklch(36.31% 0.118 290.9)
XYZxyz(6.3605, 4.3518, 17.6409)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E76 #64762E
analogous
#2E4076 #402E76 #642E76
triadic
#402E76 #76402E #2E7640
tetradic
#402E76 #762E40 #64762E #2E7664
square
#402E76 #762E40 #64762E #2E7664
split-complementary
#402E76 #76642E #40762E
monochromatic
#100C1E #281D4A #402E76 #583FA2 #775EC0

Accessibility & contrast

On white

11.23
#402E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#402E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E76
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E76#FFFFFF#000000##FFFFFF
##402E761.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#033974
Tritanopia (blue-blind)
#303E4D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #402e76;
/* rgb */ color: rgb(64, 46, 118);
/* oklch */ color: oklch(36.3% 0.118 290.9);
Tailwind
colors: {
  custom: {
    50: '#79679e',
    500: '#402e76',
    950: '#000000',
  },
}
SCSS
$custom: #402e76;
$custom-light: #79679e;
$custom-dark: #000000;
JSON
{
  "hex": "#402e76",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 118
  },
  "hsl": {
    "h": 255,
    "s": 43.902,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36312,
    "c": 0.11802,
    "h": 290.9
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#402E76
secondary
#93A759
accent
#D454B4
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #402E76

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

Preview Lab → · Contrast checker → · Palette generator →

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