#402E4E#402E4E

#402E4E is a dark, muted violet. Relative luminance 0.036; OKLCH L 33.6% C 0.059 H 309.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#402E4E
RGBrgb(64, 46, 78)
HSLhsl(274, 26%, 24%)
HSVhsv(274, 41%, 31%)
CMYKcmyk(17.9%, 41%, 0%, 69.4%)
CIE-LABlab(22.28, 15.42, -16.58)
CIE-LCHlch(22.28, 22.64, 312.93°)
OKLaboklab(33.62% 0.0375 -0.0458)
OKLCHoklch(33.62% 0.059 309.3)
XYZxyz(4.4662, 3.5941, 7.6647)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E4E #3C4E2E
analogous
#302E4E #402E4E #4E2E4C
triadic
#402E4E #4E402E #2E4E40
tetradic
#402E4E #4E302E #3C4E2E #2E4C4E
square
#402E4E #4E302E #3C4E2E #2E4C4E
split-complementary
#402E4E #4C4E2E #2E4E30
monochromatic
#100B13 #201728 #402E4E #604574 #7F5B9B

Accessibility & contrast

On white

12.22
#402E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#402E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E4E
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E4E#FFFFFF#000000##FFFFFF
##402E4E1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28344F
Deuteranopia (green-blind)
#2C364D
Tritanopia (blue-blind)
#3E333A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #402e4e;
/* rgb */ color: rgb(64, 46, 78);
/* oklch */ color: oklch(33.6% 0.059 309.3);
Tailwind
colors: {
  custom: {
    50: '#75677f',
    500: '#402e4e',
    950: '#000000',
  },
}
SCSS
$custom: #402e4e;
$custom-light: #75677f;
$custom-dark: #000000;
JSON
{
  "hex": "#402e4e",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 78
  },
  "hsl": {
    "h": 273.75,
    "s": 25.806,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33618,
    "c": 0.05919,
    "h": 309.3
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#402E4E
secondary
#697F58
accent
#C2668E
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08060A
muted
#7B7A7C

Preview Lab

Preview with #402E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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