#40219C#40219C

#40219C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.183 H 285.2°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#40219C
RGBrgb(64, 33, 156)
HSLhsl(255, 65%, 37%)
HSVhsv(255, 79%, 61%)
CMYKcmyk(59%, 78.8%, 0%, 38.8%)
CIE-LABlab(25.50, 46.10, -61.25)
CIE-LCHlch(25.50, 76.67, 306.97°)
OKLaboklab(37.85% 0.0478 -0.1765)
OKLCHoklch(37.85% 0.183 285.2)
XYZxyz(8.6571, 4.5775, 31.8734)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40219C #7D9C21
analogous
#21409C #40219C #7E219C
triadic
#40219C #9C4021 #219C40
tetradic
#40219C #9C2140 #7D9C21 #219C7E
square
#40219C #9C2140 #7D9C21 #219C7E
split-complementary
#40219C #9C7E21 #409C21
monochromatic
#170C37 #2B1669 #40219C #552CCF #7C5BDC

Accessibility & contrast

On white

10.96
#40219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#40219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40219C
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40219C#FFFFFF#000000##FFFFFF
##40219C1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#0C455E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40219c;
/* rgb */ color: rgb(64, 33, 156);
/* oklch */ color: oklch(37.8% 0.183 285.2);
Tailwind
colors: {
  custom: {
    50: '#8061ba',
    500: '#40219c',
    950: '#000000',
  },
}
SCSS
$custom: #40219c;
$custom-light: #8061ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40219c",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 255.122,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37845,
    "c": 0.18284,
    "h": 285.2
  },
  "luminance": 0.04578
}

Semantic roles & 50–950 ramp

primary
#40219C
secondary
#A6C158
accent
#E840BE
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #40219C

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

Preview Lab → · Contrast checker → · Palette generator →

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