#402C67#402C67

#402C67 is a dark, moderate violet. Relative luminance 0.039; OKLCH L 34.8% C 0.100 H 296.5°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#402C67
RGBrgb(64, 44, 103)
HSLhsl(260, 40%, 29%)
HSVhsv(260, 57%, 40%)
CMYKcmyk(37.9%, 57.3%, 0%, 59.6%)
CIE-LABlab(23.24, 23.82, -31.55)
CIE-LCHlch(23.24, 39.54, 307.05°)
OKLaboklab(34.82% 0.0445 -0.0893)
OKLCHoklch(34.82% 0.1 296.5)
XYZxyz(5.4626, 3.8705, 13.2886)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C67 #53672C
analogous
#2C3667 #402C67 #5E2C67
triadic
#402C67 #67402C #2C6740
tetradic
#402C67 #672C36 #53672C #2C675E
square
#402C67 #672C36 #53672C #2C675E
split-complementary
#402C67 #675E2C #36672C
monochromatic
#0D0915 #251A3C #402C67 #5B3E92 #7756B7

Accessibility & contrast

On white

11.84
#402C67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#402C67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402C67
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C67#FFFFFF#000000##FFFFFF
##402C671.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133869
Deuteranopia (green-blind)
#193766
Tritanopia (blue-blind)
#373845
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #402c67;
/* rgb */ color: rgb(64, 44, 103);
/* oklch */ color: oklch(34.8% 0.100 296.5);
Tailwind
colors: {
  custom: {
    50: '#776693',
    500: '#402c67',
    950: '#000000',
  },
}
SCSS
$custom: #402c67;
$custom-light: #776693;
$custom-dark: #000000;
JSON
{
  "hex": "#402c67",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 103
  },
  "hsl": {
    "h": 260.339,
    "s": 40.136,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34818,
    "c": 0.09983,
    "h": 296.5
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#402C67
secondary
#829956
accent
#D058A7
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #402C67

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

Preview Lab → · Contrast checker → · Palette generator →

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