#4024BA#4024BA

#4024BA is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.3% C 0.215 H 279.9°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4024BA
RGBrgb(64, 36, 186)
HSLhsl(251, 68%, 44%)
HSVhsv(251, 81%, 73%)
CMYKcmyk(65.6%, 80.6%, 0%, 27.1%)
CIE-LABlab(29.15, 53.45, -73.28)
CIE-LCHlch(29.15, 90.70, 306.11°)
OKLaboklab(41.33% 0.037 -0.2115)
OKLCHoklch(41.33% 0.215 279.9)
XYZxyz(11.6053, 5.8960, 46.9713)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024BA #9EBA24
analogous
#2453BA #4024BA #8B24BA
triadic
#4024BA #BA4024 #24BA40
tetradic
#4024BA #BA2453 #9EBA24 #24BA8B
square
#4024BA #BA2453 #9EBA24 #24BA8B
split-complementary
#4024BA #BA8B24 #53BA24
monochromatic
#1D1053 #2E1A87 #4024BA #5E41DA #8974E4

Accessibility & contrast

On white

9.64
#4024BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4024BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4024BA#FFFFFF#000000##FFFFFF
##4024BA1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABE
Deuteranopia (green-blind)
#003FB7
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4024ba;
/* rgb */ color: rgb(64, 36, 186);
/* oklch */ color: oklch(41.3% 0.215 279.9);
Tailwind
colors: {
  custom: {
    50: '#8664d0',
    500: '#4024ba',
    950: '#000000',
  },
}
SCSS
$custom: #4024ba;
$custom-light: #8664d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4024ba",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 186
  },
  "hsl": {
    "h": 251.2,
    "s": 67.568,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41325,
    "c": 0.21476,
    "h": 279.9
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

primary
#4024BA
secondary
#BACB6E
accent
#EA3DCA
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4024BA

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

Preview Lab → · Contrast checker → · Palette generator →

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