#402A67#402A67

#402A67 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.4% C 0.103 H 297.3°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#402A67
RGBrgb(64, 42, 103)
HSLhsl(262, 42%, 28%)
HSVhsv(262, 59%, 40%)
CMYKcmyk(37.9%, 59.2%, 0%, 59.6%)
CIE-LABlab(22.74, 25.11, -32.35)
CIE-LCHlch(22.74, 40.95, 307.82°)
OKLaboklab(34.45% 0.0474 -0.0917)
OKLCHoklch(34.45% 0.103 297.3)
XYZxyz(5.3899, 3.7251, 13.2644)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A67 #51672A
analogous
#2A3267 #402A67 #5E2A67
triadic
#402A67 #67402A #2A6740
tetradic
#402A67 #672A32 #51672A #2A675E
square
#402A67 #672A32 #51672A #2A675E
split-complementary
#402A67 #675E2A #32672A
monochromatic
#0E0916 #25183C #402A67 #5B3C92 #7753B9

Accessibility & contrast

On white

12.03
#402A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#402A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A67
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A67#FFFFFF#000000##FFFFFF
##402A671.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3669
Deuteranopia (green-blind)
#163666
Tritanopia (blue-blind)
#373744
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #402a67;
/* rgb */ color: rgb(64, 42, 103);
/* oklch */ color: oklch(34.4% 0.103 297.3);
Tailwind
colors: {
  custom: {
    50: '#786493',
    500: '#402a67',
    950: '#000000',
  },
}
SCSS
$custom: #402a67;
$custom-light: #786493;
$custom-dark: #000000;
JSON
{
  "hex": "#402a67",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 103
  },
  "hsl": {
    "h": 261.639,
    "s": 42.069,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3445,
    "c": 0.1032,
    "h": 297.3
  },
  "luminance": 0.03725
}

Semantic roles & 50–950 ramp

primary
#402A67
secondary
#809954
accent
#D256A5
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09050D
muted
#7B7A7E

Preview Lab

Preview with #402A67

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

Preview Lab → · Contrast checker → · Palette generator →

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