#4024B3#4024B3

#4024B3 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.6% C 0.207 H 280.9°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#4024B3
RGBrgb(64, 36, 179)
HSLhsl(252, 67%, 42%)
HSVhsv(252, 80%, 70%)
CMYKcmyk(64.2%, 79.9%, 0%, 29.8%)
CIE-LABlab(28.39, 51.41, -70.36)
CIE-LCHlch(28.39, 87.14, 306.15°)
OKLaboklab(40.58% 0.0391 -0.2031)
OKLCHoklch(40.58% 0.207 280.9)
XYZxyz(10.8793, 5.6056, 43.1478)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024B3 #97B324
analogous
#2450B3 #4024B3 #8724B3
triadic
#4024B3 #B34024 #24B340
tetradic
#4024B3 #B32450 #97B324 #24B387
square
#4024B3 #B32450 #97B324 #24B387
split-complementary
#4024B3 #B38724 #50B324
monochromatic
#1C104D #2E1A80 #4024B3 #5B3CD8 #866FE2

Accessibility & contrast

On white

9.90
#4024B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4024B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4024B3#FFFFFF#000000##FFFFFF
##4024B31.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B7
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4024b3;
/* rgb */ color: rgb(64, 36, 179);
/* oklch */ color: oklch(40.6% 0.207 280.9);
Tailwind
colors: {
  custom: {
    50: '#8464cb',
    500: '#4024b3',
    950: '#000000',
  },
}
SCSS
$custom: #4024b3;
$custom-light: #8464cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4024b3",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 179
  },
  "hsl": {
    "h": 251.748,
    "s": 66.512,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4058,
    "c": 0.20679,
    "h": 280.9
  },
  "luminance": 0.05606
}

Semantic roles & 50–950 ramp

primary
#4024B3
secondary
#B6C96A
accent
#E93EC8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4024B3

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

Preview Lab → · Contrast checker → · Palette generator →

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