#40219E#40219E

#40219E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.185 H 284.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#40219E
RGBrgb(64, 33, 158)
HSLhsl(255, 65%, 37%)
HSVhsv(255, 79%, 62%)
CMYKcmyk(59.5%, 79.1%, 0%, 38%)
CIE-LABlab(25.70, 46.69, -62.14)
CIE-LCHlch(25.70, 77.72, 306.92°)
OKLaboklab(38.05% 0.0472 -0.179)
OKLCHoklch(38.05% 0.185 284.8)
XYZxyz(8.8279, 4.6458, 32.7727)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40219E #7F9E21
analogous
#21419E #40219E #7F219E
triadic
#40219E #9E4021 #219E40
tetradic
#40219E #9E2141 #7F9E21 #219E7F
square
#40219E #9E2141 #7F9E21 #219E7F
split-complementary
#40219E #9E7F21 #419E21
monochromatic
#170C39 #2B166B #40219E #552CD1 #7C5CDD

Accessibility & contrast

On white

10.89
#40219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#40219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40219E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40219E#FFFFFF#000000##FFFFFF
##40219E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#07465F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #40219e;
/* rgb */ color: rgb(64, 33, 158);
/* oklch */ color: oklch(38.0% 0.185 284.8);
Tailwind
colors: {
  custom: {
    50: '#8161bc',
    500: '#40219e',
    950: '#000000',
  },
}
SCSS
$custom: #40219e;
$custom-light: #8161bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40219e",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 254.88,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3805,
    "c": 0.18516,
    "h": 284.8
  },
  "luminance": 0.04646
}

Semantic roles & 50–950 ramp

primary
#40219E
secondary
#A8C159
accent
#E83FBE
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #40219E

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

Preview Lab → · Contrast checker → · Palette generator →

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