#4024AD#4024AD

#4024AD is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.200 H 281.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#4024AD
RGBrgb(64, 36, 173)
HSLhsl(252, 66%, 41%)
HSVhsv(252, 79%, 68%)
CMYKcmyk(63%, 79.2%, 0%, 32.2%)
CIE-LABlab(27.76, 49.65, -67.82)
CIE-LCHlch(27.76, 84.05, 306.21°)
OKLaboklab(39.95% 0.0409 -0.1957)
OKLCHoklch(39.95% 0.2 281.8)
XYZxyz(10.2857, 5.3681, 40.0212)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024AD #91AD24
analogous
#244CAD #4024AD #8424AD
triadic
#4024AD #AD4024 #24AD40
tetradic
#4024AD #AD244C #91AD24 #24AD84
square
#4024AD #AD244C #91AD24 #24AD84
split-complementary
#4024AD #AD8424 #4CAD24
monochromatic
#1B0F48 #2D197A #4024AD #5939D6 #836BE0

Accessibility & contrast

On white

10.13
#4024AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4024AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4024AD
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4024AD#FFFFFF#000000##FFFFFF
##4024AD1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B1
Deuteranopia (green-blind)
#003DAB
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4024ad;
/* rgb */ color: rgb(64, 36, 173);
/* oklch */ color: oklch(39.9% 0.200 281.8);
Tailwind
colors: {
  custom: {
    50: '#8363c7',
    500: '#4024ad',
    950: '#000000',
  },
}
SCSS
$custom: #4024ad;
$custom-light: #8363c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4024ad",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 173
  },
  "hsl": {
    "h": 252.263,
    "s": 65.55,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39949,
    "c": 0.19989,
    "h": 281.8
  },
  "luminance": 0.05369
}

Semantic roles & 50–950 ramp

primary
#4024AD
secondary
#B3C666
accent
#E93FC6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4024AD

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

Preview Lab → · Contrast checker → · Palette generator →

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