#3E1566#3E1566

#3E1566 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.133 H 302.1°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#3E1566
RGBrgb(62, 21, 102)
HSLhsl(270, 66%, 24%)
HSVhsv(270, 79%, 40%)
CMYKcmyk(39.2%, 79.4%, 0%, 60%)
CIE-LABlab(18.01, 36.32, -39.36)
CIE-LCHlch(18.01, 53.56, 312.69°)
OKLaboklab(30.95% 0.0703 -0.1123)
OKLCHoklch(30.95% 0.133 302.1)
XYZxyz(4.6525, 2.5198, 12.8090)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1566 #3D6615
analogous
#151566 #3E1566 #661566
triadic
#3E1566 #663E15 #15663E
tetradic
#3E1566 #661515 #3D6615 #156666
square
#3E1566 #661515 #3D6615 #156666
split-complementary
#3E1566 #666615 #156615
monochromatic
#0F0519 #1F0B33 #3E1566 #5D1F99 #7C2ACC

Accessibility & contrast

On white

13.96
#3E1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3E1566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1566
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1566#FFFFFF#000000##FFFFFF
##3E15661.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#352A3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3e1566;
/* rgb */ color: rgb(62, 21, 102);
/* oklch */ color: oklch(31.0% 0.133 302.1);
Tailwind
colors: {
  custom: {
    50: '#785792',
    500: '#3e1566',
    950: '#000000',
  },
}
SCSS
$custom: #3e1566;
$custom-light: #785792;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1566",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 270.37,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30953,
    "c": 0.1325,
    "h": 302.1
  },
  "luminance": 0.0252
}

Semantic roles & 50–950 ramp

primary
#3E1566
secondary
#6B9D3A
accent
#E93F93
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1566

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

Preview Lab → · Contrast checker → · Palette generator →

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