#402469#402469

#402469 is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.6% C 0.116 H 298.7°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#402469
RGBrgb(64, 36, 105)
HSLhsl(264, 49%, 28%)
HSVhsv(264, 66%, 41%)
CMYKcmyk(39%, 65.7%, 0%, 58.8%)
CIE-LABlab(21.47, 29.43, -35.69)
CIE-LCHlch(21.47, 46.26, 309.51°)
OKLaboklab(33.57% 0.0555 -0.1015)
OKLCHoklch(33.57% 0.116 298.7)
XYZxyz(5.2944, 3.3716, 13.7337)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402469 #4D6924
analogous
#242A69 #402469 #622469
triadic
#402469 #694024 #246940
tetradic
#402469 #69242A #4D6924 #246962
square
#402469 #69242A #4D6924 #246962
split-complementary
#402469 #696224 #2A6924
monochromatic
#0E0817 #24143B #402469 #5C3497 #7847C0

Accessibility & contrast

On white

12.54
#402469 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#402469 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402469
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402469#FFFFFF#000000##FFFFFF
##4024691.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346B
Deuteranopia (green-blind)
#063367
Tritanopia (blue-blind)
#373343
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #402469;
/* rgb */ color: rgb(64, 36, 105);
/* oklch */ color: oklch(33.6% 0.116 298.7);
Tailwind
colors: {
  custom: {
    50: '#786094',
    500: '#402469',
    950: '#000000',
  },
}
SCSS
$custom: #402469;
$custom-light: #786094;
$custom-dark: #000000;
JSON
{
  "hex": "#402469",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 105
  },
  "hsl": {
    "h": 264.348,
    "s": 48.936,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33571,
    "c": 0.11567,
    "h": 298.7
  },
  "luminance": 0.03372
}

Semantic roles & 50–950 ramp

primary
#402469
secondary
#7C9C4D
accent
#D84FA1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09050D
muted
#7B797E

Preview Lab

Preview with #402469

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

Preview Lab → · Contrast checker → · Palette generator →

#402469 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva