#4016B4#4016B4

#4016B4 is a dark, highly saturated violet. Relative luminance 0.050; OKLCH L 39.4% C 0.218 H 281.9°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4016B4
RGBrgb(64, 22, 180)
HSLhsl(256, 78%, 40%)
HSVhsv(256, 88%, 71%)
CMYKcmyk(64.4%, 87.8%, 0%, 29.4%)
CIE-LABlab(26.62, 57.26, -73.90)
CIE-LCHlch(26.62, 93.49, 307.77°)
OKLaboklab(39.39% 0.0449 -0.2132)
OKLCHoklch(39.39% 0.218 281.9)
XYZxyz(10.6369, 4.9583, 43.5677)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4016B4 #8AB416
analogous
#163BB4 #4016B4 #8F16B4
triadic
#4016B4 #B44016 #16B440
tetradic
#4016B4 #B4163B #8AB416 #16B48F
square
#4016B4 #B4163B #8AB416 #16B48F
split-complementary
#4016B4 #B48F16 #3BB416
monochromatic
#190947 #2D0F7D #4016B4 #5623E4 #805AEB

Accessibility & contrast

On white

10.54
#4016B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4016B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4016B4
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4016B4#FFFFFF#000000##FFFFFF
##4016B41.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.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: #4016b4;
/* rgb */ color: rgb(64, 22, 180);
/* oklch */ color: oklch(39.4% 0.218 281.9);
Tailwind
colors: {
  custom: {
    50: '#865dcc',
    500: '#4016b4',
    950: '#000000',
  },
}
SCSS
$custom: #4016b4;
$custom-light: #865dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4016b4",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 255.949,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39391,
    "c": 0.21785,
    "h": 281.9
  },
  "luminance": 0.04959
}

Semantic roles & 50–950 ramp

primary
#4016B4
secondary
#AFCE58
accent
#F533C1
background
#F9F5FC
surface
#F1E9F9
border
#CBC5D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4016B4

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

Preview Lab → · Contrast checker → · Palette generator →

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