#4024A4#4024A4

#4024A4 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.189 H 283.3°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4024A4
RGBrgb(64, 36, 164)
HSLhsl(253, 64%, 39%)
HSVhsv(253, 78%, 64%)
CMYKcmyk(61%, 78%, 0%, 35.7%)
CIE-LABlab(26.82, 47.00, -63.93)
CIE-LCHlch(26.82, 79.35, 306.32°)
OKLaboklab(39.02% 0.0435 -0.1843)
OKLCHoklch(39.02% 0.189 283.3)
XYZxyz(9.4440, 5.0314, 35.5883)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024A4 #88A424
analogous
#2448A4 #4024A4 #8024A4
triadic
#4024A4 #A44024 #24A440
tetradic
#4024A4 #A42448 #88A424 #24A480
square
#4024A4 #A42448 #88A424 #24A480
split-complementary
#4024A4 #A48024 #48A424
monochromatic
#190E40 #2C1972 #4024A4 #5633D2 #7F65DD

Accessibility & contrast

On white

10.47
#4024A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4024A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4024A4
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4024A4#FFFFFF#000000##FFFFFF
##4024A41.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4024a4;
/* rgb */ color: rgb(64, 36, 164);
/* oklch */ color: oklch(39.0% 0.189 283.3);
Tailwind
colors: {
  custom: {
    50: '#8263c0',
    500: '#4024a4',
    950: '#000000',
  },
}
SCSS
$custom: #4024a4;
$custom-light: #8263c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4024a4",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 164
  },
  "hsl": {
    "h": 253.125,
    "s": 64,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39019,
    "c": 0.18939,
    "h": 283.3
  },
  "luminance": 0.05032
}

Semantic roles & 50–950 ramp

primary
#4024A4
secondary
#ADC361
accent
#E741C3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4024A4

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

Preview Lab → · Contrast checker → · Palette generator →

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