#3E17A1#3E17A1

#3E17A1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.2% C 0.197 H 284.3°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3E17A1
RGBrgb(62, 23, 161)
HSLhsl(257, 75%, 36%)
HSVhsv(257, 86%, 63%)
CMYKcmyk(61.5%, 85.7%, 0%, 36.9%)
CIE-LABlab(24.35, 51.61, -66.20)
CIE-LCHlch(24.35, 83.94, 307.94°)
OKLaboklab(37.17% 0.0486 -0.1908)
OKLCHoklch(37.17% 0.197 284.3)
XYZxyz(8.7240, 4.2096, 34.0641)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E17A1 #7AA117
analogous
#1735A1 #3E17A1 #8317A1
triadic
#3E17A1 #A13E17 #17A13E
tetradic
#3E17A1 #A11735 #7AA117 #17A183
square
#3E17A1 #A11735 #7AA117 #17A183
split-complementary
#3E17A1 #A18317 #35A117
monochromatic
#150836 #290F6B #3E17A1 #531FD7 #784DE6

Accessibility & contrast

On white

11.40
#3E17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3E17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E17A1
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E17A1#FFFFFF#000000##FFFFFF
##3E17A11.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#00435F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e17a1;
/* rgb */ color: rgb(62, 23, 161);
/* oklch */ color: oklch(37.2% 0.197 284.3);
Tailwind
colors: {
  custom: {
    50: '#815cbe',
    500: '#3e17a1',
    950: '#000000',
  },
}
SCSS
$custom: #3e17a1;
$custom-light: #815cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3e17a1",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 256.957,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37166,
    "c": 0.19692,
    "h": 284.3
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#3E17A1
secondary
#A5C74C
accent
#F236BD
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3E17A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3E17A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva