#402465#402465

#402465 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.3% C 0.110 H 300.3°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#402465
RGBrgb(64, 36, 101)
HSLhsl(266, 47%, 27%)
HSVhsv(266, 64%, 40%)
CMYKcmyk(36.6%, 64.4%, 0%, 60.4%)
CIE-LABlab(21.17, 28.27, -33.56)
CIE-LCHlch(21.17, 43.89, 310.11°)
OKLaboklab(33.26% 0.0557 -0.0952)
OKLCHoklch(33.26% 0.11 300.3)
XYZxyz(5.0936, 3.2913, 12.6763)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402465 #496524
analogous
#242965 #402465 #612465
triadic
#402465 #654024 #246540
tetradic
#402465 #652429 #496524 #246561
square
#402465 #652429 #496524 #246561
split-complementary
#402465 #656124 #296524
monochromatic
#0E0817 #231438 #402465 #5D3492 #7946BD

Accessibility & contrast

On white

12.66
#402465 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#402465 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402465
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402465#FFFFFF#000000##FFFFFF
##4024651.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003367
Deuteranopia (green-blind)
#0E3264
Tritanopia (blue-blind)
#383240
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #402465;
/* rgb */ color: rgb(64, 36, 101);
/* oklch */ color: oklch(33.3% 0.110 300.3);
Tailwind
colors: {
  custom: {
    50: '#786091',
    500: '#402465',
    950: '#000000',
  },
}
SCSS
$custom: #402465;
$custom-light: #786091;
$custom-dark: #000000;
JSON
{
  "hex": "#402465",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 101
  },
  "hsl": {
    "h": 265.846,
    "s": 47.445,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33257,
    "c": 0.11034,
    "h": 300.3
  },
  "luminance": 0.03291
}

Semantic roles & 50–950 ramp

primary
#402465
secondary
#78984C
accent
#D7519D
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09050D
muted
#7B797E

Preview Lab

Preview with #402465

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

Preview Lab → · Contrast checker → · Palette generator →

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