#402A69#402A69

#402A69 is a dark, moderate violet. Relative luminance 0.038; OKLCH L 34.6% C 0.106 H 296.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#402A69
RGBrgb(64, 42, 105)
HSLhsl(261, 43%, 29%)
HSVhsv(261, 60%, 41%)
CMYKcmyk(39%, 60%, 0%, 58.8%)
CIE-LABlab(22.88, 25.70, -33.42)
CIE-LCHlch(22.88, 42.16, 307.56°)
OKLaboklab(34.6% 0.0474 -0.0948)
OKLCHoklch(34.6% 0.106 296.6)
XYZxyz(5.4915, 3.7657, 13.7994)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A69 #53692A
analogous
#2A3469 #402A69 #602A69
triadic
#402A69 #69402A #2A6940
tetradic
#402A69 #692A34 #53692A #2A6960
square
#402A69 #692A34 #53692A #2A6960
split-complementary
#402A69 #69602A #34692A
monochromatic
#0D0916 #25193D #402A69 #5B3B95 #7753BA

Accessibility & contrast

On white

11.98
#402A69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402A69
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A69#FFFFFF#000000##FFFFFF
##402A691.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B376B
Deuteranopia (green-blind)
#133668
Tritanopia (blue-blind)
#363745
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #402a69;
/* rgb */ color: rgb(64, 42, 105);
/* oklch */ color: oklch(34.6% 0.106 296.6);
Tailwind
colors: {
  custom: {
    50: '#786494',
    500: '#402a69',
    950: '#000000',
  },
}
SCSS
$custom: #402a69;
$custom-light: #786494;
$custom-dark: #000000;
JSON
{
  "hex": "#402a69",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 105
  },
  "hsl": {
    "h": 260.952,
    "s": 42.857,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34599,
    "c": 0.10603,
    "h": 296.6
  },
  "luminance": 0.03766
}

Semantic roles & 50–950 ramp

primary
#402A69
secondary
#829B54
accent
#D355A7
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09050D
muted
#7B7A7E

Preview Lab

Preview with #402A69

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

Preview Lab → · Contrast checker → · Palette generator →

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