#4024B1#4024B1

#4024B1 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.4% C 0.204 H 281.2°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4024B1
RGBrgb(64, 36, 177)
HSLhsl(252, 66%, 42%)
HSVhsv(252, 80%, 69%)
CMYKcmyk(63.8%, 79.7%, 0%, 30.6%)
CIE-LABlab(28.18, 50.83, -69.52)
CIE-LCHlch(28.18, 86.12, 306.17°)
OKLaboklab(40.37% 0.0397 -0.2006)
OKLCHoklch(40.37% 0.205 281.2)
XYZxyz(10.6785, 5.5253, 42.0902)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024B1 #95B124
analogous
#244FB1 #4024B1 #8724B1
triadic
#4024B1 #B14024 #24B140
tetradic
#4024B1 #B1244F #95B124 #24B187
square
#4024B1 #B1244F #95B124 #24B187
split-complementary
#4024B1 #B18724 #4FB124
monochromatic
#1B0F4B #2E1A7E #4024B1 #5A3BD7 #856EE1

Accessibility & contrast

On white

9.98
#4024B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4024B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4024B1#FFFFFF#000000##FFFFFF
##4024B11.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4024b1;
/* rgb */ color: rgb(64, 36, 177);
/* oklch */ color: oklch(40.4% 0.204 281.2);
Tailwind
colors: {
  custom: {
    50: '#8464ca',
    500: '#4024b1',
    950: '#000000',
  },
}
SCSS
$custom: #4024b1;
$custom-light: #8464ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4024b1",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 177
  },
  "hsl": {
    "h": 251.915,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40369,
    "c": 0.2045,
    "h": 281.2
  },
  "luminance": 0.05526
}

Semantic roles & 50–950 ramp

primary
#4024B1
secondary
#B5C869
accent
#E93FC7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4024B1

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

Preview Lab → · Contrast checker → · Palette generator →

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