#402C69#402C69

#402C69 is a dark, moderate violet. Relative luminance 0.039; OKLCH L 35.0% C 0.103 H 295.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#402C69
RGBrgb(64, 44, 105)
HSLhsl(260, 41%, 29%)
HSVhsv(260, 58%, 41%)
CMYKcmyk(39%, 58.1%, 0%, 58.8%)
CIE-LABlab(23.38, 24.42, -32.63)
CIE-LCHlch(23.38, 40.76, 306.81°)
OKLaboklab(34.96% 0.0446 -0.0925)
OKLCHoklch(34.96% 0.103 295.7)
XYZxyz(5.5642, 3.9112, 13.8236)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C69 #55692C
analogous
#2C3769 #402C69 #5F2C69
triadic
#402C69 #69402C #2C6940
tetradic
#402C69 #692C37 #55692C #2C695F
square
#402C69 #692C37 #55692C #2C695F
split-complementary
#402C69 #695F2C #37692C
monochromatic
#0D0916 #261A3E #402C69 #5A3E94 #7757B9

Accessibility & contrast

On white

11.78
#402C69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402C69
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C69#FFFFFF#000000##FFFFFF
##402C691.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10386B
Deuteranopia (green-blind)
#173768
Tritanopia (blue-blind)
#363946
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #402c69;
/* rgb */ color: rgb(64, 44, 105);
/* oklch */ color: oklch(35.0% 0.103 295.7);
Tailwind
colors: {
  custom: {
    50: '#786694',
    500: '#402c69',
    950: '#000000',
  },
}
SCSS
$custom: #402c69;
$custom-light: #786694;
$custom-dark: #000000;
JSON
{
  "hex": "#402c69",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 105
  },
  "hsl": {
    "h": 259.672,
    "s": 40.94,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34963,
    "c": 0.10271,
    "h": 295.7
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#402C69
secondary
#849B56
accent
#D157A9
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #402C69

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

Preview Lab → · Contrast checker → · Palette generator →

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