#4024B0#4024B0

#4024B0 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.3% C 0.203 H 281.3°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4024B0
RGBrgb(64, 36, 176)
HSLhsl(252, 66%, 42%)
HSVhsv(252, 80%, 69%)
CMYKcmyk(63.6%, 79.5%, 0%, 31%)
CIE-LABlab(28.08, 50.53, -69.09)
CIE-LCHlch(28.08, 85.60, 306.18°)
OKLaboklab(40.26% 0.04 -0.1994)
OKLCHoklch(40.26% 0.203 281.3)
XYZxyz(10.5792, 5.4855, 41.5672)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024B0 #94B024
analogous
#244EB0 #4024B0 #8624B0
triadic
#4024B0 #B04024 #24B040
tetradic
#4024B0 #B0244E #94B024 #24B086
square
#4024B0 #B0244E #94B024 #24B086
split-complementary
#4024B0 #B08624 #4EB024
monochromatic
#1B0F4A #2E1A7D #4024B0 #5A3AD7 #846DE1

Accessibility & contrast

On white

10.01
#4024B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4024B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4024B0#FFFFFF#000000##FFFFFF
##4024B01.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B4
Deuteranopia (green-blind)
#003DAE
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4024b0;
/* rgb */ color: rgb(64, 36, 176);
/* oklch */ color: oklch(40.3% 0.203 281.3);
Tailwind
colors: {
  custom: {
    50: '#8464c9',
    500: '#4024b0',
    950: '#000000',
  },
}
SCSS
$custom: #4024b0;
$custom-light: #8464c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4024b0",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 176
  },
  "hsl": {
    "h": 252,
    "s": 66.038,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40264,
    "c": 0.20335,
    "h": 281.3
  },
  "luminance": 0.05486
}

Semantic roles & 50–950 ramp

primary
#4024B0
secondary
#B4C868
accent
#E93FC7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4024B0

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

Preview Lab → · Contrast checker → · Palette generator →

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