#3E1764#3E1764

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

Color values

HEX#3E1764
RGBrgb(62, 23, 100)
HSLhsl(270, 63%, 24%)
HSVhsv(270, 77%, 39%)
CMYKcmyk(38%, 77%, 0%, 60.8%)
CIE-LABlab(18.17, 34.81, -37.78)
CIE-LCHlch(18.17, 51.37, 312.66°)
OKLaboklab(31.02% 0.0687 -0.1076)
OKLCHoklch(31.02% 0.128 302.6)
XYZxyz(4.5927, 2.5570, 12.3057)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1764 #3D6417
analogous
#181764 #3E1764 #641764
triadic
#3E1764 #643E17 #17643E
tetradic
#3E1764 #641817 #3D6417 #176464
square
#3E1764 #641817 #3D6417 #176464
split-complementary
#3E1764 #646417 #176418
monochromatic
#0F0619 #1F0C32 #3E1764 #5D2296 #7C2EC8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E1764#FFFFFF#000000##FFFFFF
##3E17641.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)
#002C66
Deuteranopia (green-blind)
#002C62
Tritanopia (blue-blind)
#362A3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3e1764;
/* rgb */ color: rgb(62, 23, 100);
/* oklch */ color: oklch(31.0% 0.128 302.6);
Tailwind
colors: {
  custom: {
    50: '#775891',
    500: '#3e1764',
    950: '#000000',
  },
}
SCSS
$custom: #3e1764;
$custom-light: #775891;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1764",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 270.39,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31016,
    "c": 0.12771,
    "h": 302.6
  },
  "luminance": 0.02557
}

Semantic roles & 50–950 ramp

primary
#3E1764
secondary
#6B9A3C
accent
#E64293
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #3E1764

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

Preview Lab → · Contrast checker → · Palette generator →

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