#4021AD#4021AD

#4021AD is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.6% C 0.202 H 282.1°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#4021AD
RGBrgb(64, 33, 173)
HSLhsl(253, 68%, 40%)
HSVhsv(253, 81%, 68%)
CMYKcmyk(63%, 80.9%, 0%, 32.2%)
CIE-LABlab(27.28, 51.04, -68.61)
CIE-LCHlch(27.28, 85.51, 306.65°)
OKLaboklab(39.62% 0.0426 -0.1979)
OKLCHoklch(39.62% 0.202 282.1)
XYZxyz(10.1987, 5.1941, 39.9922)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4021AD #8EAD21
analogous
#2148AD #4021AD #8621AD
triadic
#4021AD #AD4021 #21AD40
tetradic
#4021AD #AD2148 #8EAD21 #21AD86
square
#4021AD #AD2148 #8EAD21 #21AD86
split-complementary
#4021AD #AD8621 #48AD21
monochromatic
#1A0D46 #2D177A #4021AD #5833D8 #8266E2

Accessibility & contrast

On white

10.30
#4021AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4021AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4021AD#FFFFFF#000000##FFFFFF
##4021AD1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B1
Deuteranopia (green-blind)
#003BAB
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4021ad;
/* rgb */ color: rgb(64, 33, 173);
/* oklch */ color: oklch(39.6% 0.202 282.1);
Tailwind
colors: {
  custom: {
    50: '#8462c7',
    500: '#4021ad',
    950: '#000000',
  },
}
SCSS
$custom: #4021ad;
$custom-light: #8462c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4021ad",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 173
  },
  "hsl": {
    "h": 253.286,
    "s": 67.961,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39618,
    "c": 0.20244,
    "h": 282.1
  },
  "luminance": 0.05195
}

Semantic roles & 50–950 ramp

primary
#4021AD
secondary
#B1C762
accent
#EB3DC4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4021AD

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

Preview Lab → · Contrast checker → · Palette generator →

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