#402E68#402E68

#402E68 is a dark, moderate violet. Relative luminance 0.040; OKLCH L 35.3% C 0.098 H 295.2°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#402E68
RGBrgb(64, 46, 104)
HSLhsl(259, 39%, 29%)
HSVhsv(259, 56%, 41%)
CMYKcmyk(38.5%, 55.8%, 0%, 59.2%)
CIE-LABlab(23.81, 22.82, -31.28)
CIE-LCHlch(23.81, 38.72, 306.12°)
OKLaboklab(35.27% 0.0417 -0.0885)
OKLCHoklch(35.27% 0.098 295.2)
XYZxyz(5.5894, 4.0434, 13.5800)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E68 #56682E
analogous
#2E3968 #402E68 #5D2E68
triadic
#402E68 #68402E #2E6840
tetradic
#402E68 #682E39 #56682E #2E685D
square
#402E68 #682E39 #56682E #2E685D
split-complementary
#402E68 #685D2E #39682E
monochromatic
#0D0915 #261B3E #402E68 #5A4192 #775AB6

Accessibility & contrast

On white

11.61
#402E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#402E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E68
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E68#FFFFFF#000000##FFFFFF
##402E681.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16396A
Deuteranopia (green-blind)
#1B3867
Tritanopia (blue-blind)
#363A46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #402e68;
/* rgb */ color: rgb(64, 46, 104);
/* oklch */ color: oklch(35.3% 0.098 295.2);
Tailwind
colors: {
  custom: {
    50: '#776793',
    500: '#402e68',
    950: '#000000',
  },
}
SCSS
$custom: #402e68;
$custom-light: #776793;
$custom-dark: #000000;
JSON
{
  "hex": "#402e68",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 104
  },
  "hsl": {
    "h": 258.621,
    "s": 38.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35266,
    "c": 0.09788,
    "h": 295.2
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#402E68
secondary
#859A58
accent
#CF59AA
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #402E68

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

Preview Lab → · Contrast checker → · Palette generator →

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