#4017B4#4017B4

#4017B4 is a dark, highly saturated violet. Relative luminance 0.050; OKLCH L 39.5% C 0.217 H 281.8°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#4017B4
RGBrgb(64, 23, 180)
HSLhsl(256, 77%, 40%)
HSVhsv(256, 87%, 71%)
CMYKcmyk(64.4%, 87.2%, 0%, 29.4%)
CIE-LABlab(26.73, 56.93, -73.72)
CIE-LCHlch(26.73, 93.14, 307.68°)
OKLaboklab(39.47% 0.0446 -0.2126)
OKLCHoklch(39.47% 0.217 281.8)
XYZxyz(10.6564, 4.9973, 43.5742)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4017B4 #8BB417
analogous
#173CB4 #4017B4 #8F17B4
triadic
#4017B4 #B44017 #17B440
tetradic
#4017B4 #B4173C #8BB417 #17B48F
square
#4017B4 #B4173C #8BB417 #17B48F
split-complementary
#4017B4 #B48F17 #3CB417
monochromatic
#190947 #2D107E #4017B4 #5725E3 #815BEA

Accessibility & contrast

On white

10.50
#4017B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4017B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4017B4
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4017B4#FFFFFF#000000##FFFFFF
##4017B41.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4017b4;
/* rgb */ color: rgb(64, 23, 180);
/* oklch */ color: oklch(39.5% 0.217 281.8);
Tailwind
colors: {
  custom: {
    50: '#865ecc',
    500: '#4017b4',
    950: '#000000',
  },
}
SCSS
$custom: #4017b4;
$custom-light: #865ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#4017b4",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 255.669,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39467,
    "c": 0.21726,
    "h": 281.8
  },
  "luminance": 0.04998
}

Semantic roles & 50–950 ramp

primary
#4017B4
secondary
#AFCE59
accent
#F434C2
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4017B4

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

Preview Lab → · Contrast checker → · Palette generator →

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