#402467#402467

#402467 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.4% C 0.113 H 299.5°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#402467
RGBrgb(64, 36, 103)
HSLhsl(265, 48%, 27%)
HSVhsv(265, 65%, 40%)
CMYKcmyk(37.9%, 65%, 0%, 59.6%)
CIE-LABlab(21.32, 28.85, -34.63)
CIE-LCHlch(21.32, 45.07, 309.79°)
OKLaboklab(33.41% 0.0556 -0.0984)
OKLCHoklch(33.41% 0.113 299.5)
XYZxyz(5.1928, 3.3310, 13.1987)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402467 #4B6724
analogous
#242967 #402467 #622467
triadic
#402467 #674024 #246740
tetradic
#402467 #672429 #4B6724 #246762
square
#402467 #672429 #4B6724 #246762
split-complementary
#402467 #676224 #296724
monochromatic
#0E0817 #24143A #402467 #5C3494 #7947BF

Accessibility & contrast

On white

12.60
#402467 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402467
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402467#FFFFFF#000000##FFFFFF
##4024671.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#0A3366
Tritanopia (blue-blind)
#373241
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #402467;
/* rgb */ color: rgb(64, 36, 103);
/* oklch */ color: oklch(33.4% 0.113 299.5);
Tailwind
colors: {
  custom: {
    50: '#786093',
    500: '#402467',
    950: '#000000',
  },
}
SCSS
$custom: #402467;
$custom-light: #786093;
$custom-dark: #000000;
JSON
{
  "hex": "#402467",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 103
  },
  "hsl": {
    "h": 265.075,
    "s": 48.201,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33413,
    "c": 0.11301,
    "h": 299.5
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#402467
secondary
#7A9A4C
accent
#D8509F
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09050D
muted
#7B797E

Preview Lab

Preview with #402467

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

Preview Lab → · Contrast checker → · Palette generator →

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