#4015B4#4015B4

#4015B4 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.3% C 0.218 H 282.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#4015B4
RGBrgb(64, 21, 180)
HSLhsl(256, 79%, 39%)
HSVhsv(256, 88%, 71%)
CMYKcmyk(64.4%, 88.3%, 0%, 29.4%)
CIE-LABlab(26.51, 57.59, -74.08)
CIE-LCHlch(26.51, 93.83, 307.86°)
OKLaboklab(39.32% 0.0453 -0.2137)
OKLCHoklch(39.32% 0.218 282)
XYZxyz(10.6182, 4.9208, 43.5614)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4015B4 #89B415
analogous
#153AB4 #4015B4 #8F15B4
triadic
#4015B4 #B44015 #15B440
tetradic
#4015B4 #B4153A #89B415 #15B48F
square
#4015B4 #B4153A #89B415 #15B48F
split-complementary
#4015B4 #B48F15 #3AB415
monochromatic
#190846 #2D0F7D #4015B4 #5621E5 #8058EC

Accessibility & contrast

On white

10.58
#4015B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4015B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4015B4
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4015B4#FFFFFF#000000##FFFFFF
##4015B41.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0039B1
Tritanopia (blue-blind)
#004B6A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4015b4;
/* rgb */ color: rgb(64, 21, 180);
/* oklch */ color: oklch(39.3% 0.218 282.0);
Tailwind
colors: {
  custom: {
    50: '#865dcc',
    500: '#4015b4',
    950: '#000000',
  },
}
SCSS
$custom: #4015b4;
$custom-light: #865dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4015b4",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 256.226,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39318,
    "c": 0.21841,
    "h": 282
  },
  "luminance": 0.04922
}

Semantic roles & 50–950 ramp

primary
#4015B4
secondary
#AECF56
accent
#F632C1
background
#F9F5FC
surface
#F1E9F9
border
#CBC5D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4015B4

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

Preview Lab → · Contrast checker → · Palette generator →

#4015B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva