#4024AA#4024AA

#4024AA is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.196 H 282.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4024AA
RGBrgb(64, 36, 170)
HSLhsl(253, 65%, 40%)
HSVhsv(253, 79%, 67%)
CMYKcmyk(62.4%, 78.8%, 0%, 33.3%)
CIE-LABlab(27.44, 48.77, -66.53)
CIE-LCHlch(27.44, 82.49, 306.24°)
OKLaboklab(39.64% 0.0418 -0.1919)
OKLCHoklch(39.64% 0.196 282.3)
XYZxyz(9.9987, 5.2533, 38.5095)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024AA #8EAA24
analogous
#244BAA #4024AA #8324AA
triadic
#4024AA #AA4024 #24AA40
tetradic
#4024AA #AA244B #8EAA24 #24AA83
square
#4024AA #AA244B #8EAA24 #24AA83
split-complementary
#4024AA #AA8324 #4BAA24
monochromatic
#1A0F45 #2D1977 #4024AA #5837D5 #8269DF

Accessibility & contrast

On white

10.24
#4024AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4024AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4024AA#FFFFFF#000000##FFFFFF
##4024AA1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4024aa;
/* rgb */ color: rgb(64, 36, 170);
/* oklch */ color: oklch(39.6% 0.196 282.3);
Tailwind
colors: {
  custom: {
    50: '#8363c5',
    500: '#4024aa',
    950: '#000000',
  },
}
SCSS
$custom: #4024aa;
$custom-light: #8363c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4024aa",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 170
  },
  "hsl": {
    "h": 252.537,
    "s": 65.049,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39637,
    "c": 0.1964,
    "h": 282.3
  },
  "luminance": 0.05254
}

Semantic roles & 50–950 ramp

primary
#4024AA
secondary
#B1C565
accent
#E840C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4024AA

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

Preview Lab → · Contrast checker → · Palette generator →

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