#4024A7#4024A7

#4024A7 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.193 H 282.8°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4024A7
RGBrgb(64, 36, 167)
HSLhsl(253, 65%, 40%)
HSVhsv(253, 78%, 65%)
CMYKcmyk(61.7%, 78.4%, 0%, 34.5%)
CIE-LABlab(27.13, 47.89, -65.24)
CIE-LCHlch(27.13, 80.93, 306.28°)
OKLaboklab(39.33% 0.0427 -0.1881)
OKLCHoklch(39.33% 0.193 282.8)
XYZxyz(9.7181, 5.1411, 37.0319)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024A7 #8BA724
analogous
#244AA7 #4024A7 #8124A7
triadic
#4024A7 #A74024 #24A740
tetradic
#4024A7 #A7244A #8BA724 #24A781
square
#4024A7 #A7244A #8BA724 #24A781
split-complementary
#4024A7 #A78124 #4AA724
monochromatic
#190E42 #2D1975 #4024A7 #5735D3 #8167DE

Accessibility & contrast

On white

10.35
#4024A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4024A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4024A7#FFFFFF#000000##FFFFFF
##4024A71.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4024a7;
/* rgb */ color: rgb(64, 36, 167);
/* oklch */ color: oklch(39.3% 0.193 282.8);
Tailwind
colors: {
  custom: {
    50: '#8263c2',
    500: '#4024a7',
    950: '#000000',
  },
}
SCSS
$custom: #4024a7;
$custom-light: #8263c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4024a7",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 252.824,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39327,
    "c": 0.1929,
    "h": 282.8
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#4024A7
secondary
#AFC463
accent
#E840C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4024A7

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

Preview Lab → · Contrast checker → · Palette generator →

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