#3E1568#3E1568

#3E1568 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.135 H 301.2°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#3E1568
RGBrgb(62, 21, 104)
HSLhsl(270, 66%, 25%)
HSVhsv(270, 80%, 41%)
CMYKcmyk(40.4%, 79.8%, 0%, 59.2%)
CIE-LABlab(18.19, 36.85, -40.38)
CIE-LCHlch(18.19, 54.67, 312.38°)
OKLaboklab(31.14% 0.0698 -0.1153)
OKLCHoklch(31.14% 0.135 301.2)
XYZxyz(4.7529, 2.5599, 13.3377)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1568 #3F6815
analogous
#151568 #3E1568 #681568
triadic
#3E1568 #683E15 #15683E
tetradic
#3E1568 #681515 #3F6815 #156868
square
#3E1568 #681515 #3F6815 #156868
split-complementary
#3E1568 #686815 #156815
monochromatic
#0F0519 #200B35 #3E1568 #5C1F9B #7B2ACE

Accessibility & contrast

On white

13.89
#3E1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3E1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1568
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1568#FFFFFF#000000##FFFFFF
##3E15681.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#352A3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3e1568;
/* rgb */ color: rgb(62, 21, 104);
/* oklch */ color: oklch(31.1% 0.135 301.2);
Tailwind
colors: {
  custom: {
    50: '#785794',
    500: '#3e1568',
    950: '#000000',
  },
}
SCSS
$custom: #3e1568;
$custom-light: #785794;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1568",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 269.639,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31135,
    "c": 0.13478,
    "h": 301.2
  },
  "luminance": 0.0256
}

Semantic roles & 50–950 ramp

primary
#3E1568
secondary
#6D9F3A
accent
#E93E95
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1568

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

Preview Lab → · Contrast checker → · Palette generator →

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