#4021CA#4021CA

#4021CA is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.8% C 0.235 H 278.1°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4021CA
RGBrgb(64, 33, 202)
HSLhsl(251, 72%, 46%)
HSVhsv(251, 84%, 79%)
CMYKcmyk(68.3%, 83.7%, 0%, 20.8%)
CIE-LABlab(30.50, 59.26, -80.46)
CIE-LCHlch(30.50, 99.93, 306.37°)
OKLaboklab(42.78% 0.0333 -0.2324)
OKLCHoklch(42.78% 0.235 278.1)
XYZxyz(13.3154, 6.4408, 56.4071)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4021CA #ABCA21
analogous
#2156CA #4021CA #9421CA
triadic
#4021CA #CA4021 #21CA40
tetradic
#4021CA #CA2156 #ABCA21 #21CA94
square
#4021CA #CA2156 #ABCA21 #21CA94
split-complementary
#4021CA #CA9421 #56CA21
monochromatic
#1F1061 #2F1895 #4021CA #6347E1 #907CEA

Accessibility & contrast

On white

9.18
#4021CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4021CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4021CA#FFFFFF#000000##FFFFFF
##4021CA1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ECE
Deuteranopia (green-blind)
#0041C7
Tritanopia (blue-blind)
#005879
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4021ca;
/* rgb */ color: rgb(64, 33, 202);
/* oklch */ color: oklch(42.8% 0.235 278.1);
Tailwind
colors: {
  custom: {
    50: '#8964dc',
    500: '#4021ca',
    950: '#000000',
  },
}
SCSS
$custom: #4021ca;
$custom-light: #8964dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4021ca",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 251.006,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42775,
    "c": 0.23475,
    "h": 278.1
  },
  "luminance": 0.06442
}

Semantic roles & 50–950 ramp

primary
#4021CA
secondary
#C1D275
accent
#EF39CD
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4021CA

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

Preview Lab → · Contrast checker → · Palette generator →

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