#402B60#402B60

#402B60 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.1% C 0.091 H 299.9°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#402B60
RGBrgb(64, 43, 96)
HSLhsl(264, 38%, 27%)
HSVhsv(264, 55%, 38%)
CMYKcmyk(33.3%, 55.2%, 0%, 62.4%)
CIE-LABlab(22.52, 22.41, -28.13)
CIE-LCHlch(22.52, 35.97, 308.55°)
OKLaboklab(34.14% 0.0455 -0.0793)
OKLCHoklch(34.14% 0.091 299.9)
XYZxyz(5.0891, 3.6622, 11.5028)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402B60 #4B602B
analogous
#2B3160 #402B60 #5B2B60
triadic
#402B60 #60402B #2B6040
tetradic
#402B60 #602B31 #4B602B #2B605B
square
#402B60 #602B31 #4B602B #2B605B
split-complementary
#402B60 #605B2B #31602B
monochromatic
#0E0915 #241836 #402B60 #5C3E8A #7953B2

Accessibility & contrast

On white

12.12
#402B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#402B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402B60
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402B60#FFFFFF#000000##FFFFFF
##402B601.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183662
Deuteranopia (green-blind)
#1E355F
Tritanopia (blue-blind)
#393541
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #402b60;
/* rgb */ color: rgb(64, 43, 96);
/* oklch */ color: oklch(34.1% 0.091 299.9);
Tailwind
colors: {
  custom: {
    50: '#77658d',
    500: '#402b60',
    950: '#000000',
  },
}
SCSS
$custom: #402b60;
$custom-light: #77658d;
$custom-dark: #000000;
JSON
{
  "hex": "#402b60",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 96
  },
  "hsl": {
    "h": 263.774,
    "s": 38.129,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34137,
    "c": 0.09145,
    "h": 299.9
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#402B60
secondary
#7A9255
accent
#CE5AA0
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#09050C
muted
#7B7A7D

Preview Lab

Preview with #402B60

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

Preview Lab → · Contrast checker → · Palette generator →

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