#4021AA#4021AA

#4021AA is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.199 H 282.6°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4021AA
RGBrgb(64, 33, 170)
HSLhsl(254, 67%, 40%)
HSVhsv(254, 81%, 67%)
CMYKcmyk(62.4%, 80.6%, 0%, 33.3%)
CIE-LABlab(26.96, 50.17, -67.33)
CIE-LCHlch(26.96, 83.97, 306.69°)
OKLaboklab(39.3% 0.0435 -0.1942)
OKLCHoklch(39.3% 0.199 282.6)
XYZxyz(9.9116, 5.0793, 38.4805)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4021AA #8BAA21
analogous
#2146AA #4021AA #8521AA
triadic
#4021AA #AA4021 #21AA40
tetradic
#4021AA #AA2146 #8BAA21 #21AA85
square
#4021AA #AA2146 #8BAA21 #21AA85
split-complementary
#4021AA #AA8521 #46AA21
monochromatic
#190D43 #2D1777 #4021AA #5731D7 #8164E1

Accessibility & contrast

On white

10.42
#4021AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4021AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4021AA
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4021AA#FFFFFF#000000##FFFFFF
##4021AA1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AE
Deuteranopia (green-blind)
#003BA8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4021aa;
/* rgb */ color: rgb(64, 33, 170);
/* oklch */ color: oklch(39.3% 0.199 282.6);
Tailwind
colors: {
  custom: {
    50: '#8362c5',
    500: '#4021aa',
    950: '#000000',
  },
}
SCSS
$custom: #4021aa;
$custom-light: #8362c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4021aa",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 253.577,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.393,
    "c": 0.19902,
    "h": 282.6
  },
  "luminance": 0.0508
}

Semantic roles & 50–950 ramp

primary
#4021AA
secondary
#AFC661
accent
#EA3DC3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4021AA

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

Preview Lab → · Contrast checker → · Palette generator →

#4021AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva