#40219A#40219A

#40219A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.180 H 285.6°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#40219A
RGBrgb(64, 33, 154)
HSLhsl(255, 65%, 37%)
HSVhsv(255, 79%, 60%)
CMYKcmyk(58.4%, 78.6%, 0%, 39.6%)
CIE-LABlab(25.29, 45.52, -60.36)
CIE-LCHlch(25.29, 75.60, 307.02°)
OKLaboklab(37.64% 0.0484 -0.1739)
OKLCHoklch(37.64% 0.18 285.6)
XYZxyz(8.4892, 4.5103, 30.9888)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40219A #7B9A21
analogous
#213F9A #40219A #7D219A
triadic
#40219A #9A4021 #219A40
tetradic
#40219A #9A213F #7B9A21 #219A7D
square
#40219A #9A213F #7B9A21 #219A7D
split-complementary
#40219A #9A7D21 #3F9A21
monochromatic
#160B35 #2B1668 #40219A #552CCC #7B5ADC

Accessibility & contrast

On white

11.04
#40219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#40219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40219A
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40219A#FFFFFF#000000##FFFFFF
##40219A1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#11445D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40219a;
/* rgb */ color: rgb(64, 33, 154);
/* oklch */ color: oklch(37.6% 0.180 285.6);
Tailwind
colors: {
  custom: {
    50: '#8061b9',
    500: '#40219a',
    950: '#000000',
  },
}
SCSS
$custom: #40219a;
$custom-light: #8061b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40219a",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 255.372,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37642,
    "c": 0.18049,
    "h": 285.6
  },
  "luminance": 0.04511
}

Semantic roles & 50–950 ramp

primary
#40219A
secondary
#A5C057
accent
#E840BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #40219A

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

Preview Lab → · Contrast checker → · Palette generator →

#40219A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva