#3E17A0#3E17A0

#3E17A0 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.196 H 284.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3E17A0
RGBrgb(62, 23, 160)
HSLhsl(257, 75%, 36%)
HSVhsv(257, 86%, 63%)
CMYKcmyk(61.2%, 85.6%, 0%, 37.3%)
CIE-LABlab(24.24, 51.34, -65.78)
CIE-LCHlch(24.24, 83.44, 307.97°)
OKLaboklab(37.06% 0.049 -0.1896)
OKLCHoklch(37.06% 0.196 284.5)
XYZxyz(8.6362, 4.1744, 33.6015)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E17A0 #79A017
analogous
#1735A0 #3E17A0 #8217A0
triadic
#3E17A0 #A03E17 #17A03E
tetradic
#3E17A0 #A01735 #79A017 #17A082
square
#3E17A0 #A01735 #79A017 #17A082
split-complementary
#3E17A0 #A08217 #35A017
monochromatic
#150835 #290F6A #3E17A0 #531FD6 #784CE5

Accessibility & contrast

On white

11.44
#3E17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E17A0
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E17A0#FFFFFF#000000##FFFFFF
##3E17A01.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e17a0;
/* rgb */ color: rgb(62, 23, 160);
/* oklch */ color: oklch(37.1% 0.196 284.5);
Tailwind
colors: {
  custom: {
    50: '#815cbd',
    500: '#3e17a0',
    950: '#000000',
  },
}
SCSS
$custom: #3e17a0;
$custom-light: #815cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3e17a0",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 257.08,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37056,
    "c": 0.19582,
    "h": 284.5
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#3E17A0
secondary
#A4C74C
accent
#F136BC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3E17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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