#402D65#402D65

#402D65 is a dark, moderate violet. Relative luminance 0.039; OKLCH L 34.9% C 0.095 H 296.8°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#402D65
RGBrgb(64, 45, 101)
HSLhsl(260, 38%, 29%)
HSVhsv(260, 55%, 40%)
CMYKcmyk(36.6%, 55.4%, 0%, 60.4%)
CIE-LABlab(23.36, 22.58, -30.06)
CIE-LCHlch(23.36, 37.59, 306.91°)
OKLaboklab(34.86% 0.043 -0.085)
OKLCHoklch(34.86% 0.095 296.8)
XYZxyz(5.4011, 3.9063, 12.7788)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D65 #52652D
analogous
#2D3665 #402D65 #5C2D65
triadic
#402D65 #65402D #2D6540
tetradic
#402D65 #652D36 #52652D #2D655C
square
#402D65 #652D36 #52652D #2D655C
split-complementary
#402D65 #655C2D #36652D
monochromatic
#0D0915 #251A3B #402D65 #5B408F #7758B5

Accessibility & contrast

On white

11.79
#402D65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#402D65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402D65
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D65#FFFFFF#000000##FFFFFF
##402D651.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173867
Deuteranopia (green-blind)
#1C3764
Tritanopia (blue-blind)
#383844
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #402d65;
/* rgb */ color: rgb(64, 45, 101);
/* oklch */ color: oklch(34.9% 0.095 296.8);
Tailwind
colors: {
  custom: {
    50: '#776691',
    500: '#402d65',
    950: '#000000',
  },
}
SCSS
$custom: #402d65;
$custom-light: #776691;
$custom-dark: #000000;
JSON
{
  "hex": "#402d65",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 101
  },
  "hsl": {
    "h": 260.357,
    "s": 38.356,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34864,
    "c": 0.09521,
    "h": 296.8
  },
  "luminance": 0.03906
}

Semantic roles & 50–950 ramp

primary
#402D65
secondary
#819757
accent
#CE5AA7
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#09060D
muted
#7B7A7D

Preview Lab

Preview with #402D65

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

Preview Lab → · Contrast checker → · Palette generator →

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