#3E1D7C#3E1D7C

#3E1D7C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.149 H 292.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#3E1D7C
RGBrgb(62, 29, 124)
HSLhsl(261, 62%, 30%)
HSVhsv(261, 77%, 49%)
CMYKcmyk(50%, 76.6%, 0%, 51.4%)
CIE-LABlab(21.42, 38.47, -48.00)
CIE-LCHlch(21.42, 61.52, 308.71°)
OKLaboklab(33.98% 0.0569 -0.1377)
OKLCHoklch(33.98% 0.149 292.5)
XYZxyz(6.0630, 3.3579, 19.3936)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D7C #5B7C1D
analogous
#1D2B7C #3E1D7C #6E1D7C
triadic
#3E1D7C #7C3E1D #1D7C3E
tetradic
#3E1D7C #7C1D2B #5B7C1D #1D7C6E
square
#3E1D7C #7C1D2B #5B7C1D #1D7C6E
split-complementary
#3E1D7C #7C6E1D #2B7C1D
monochromatic
#0C0619 #25114A #3E1D7C #5729AE #7341D3

Accessibility & contrast

On white

12.56
#3E1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3E1D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D7C
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D7C#FFFFFF#000000##FFFFFF
##3E1D7C1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#2A364B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1d7c;
/* rgb */ color: rgb(62, 29, 124);
/* oklch */ color: oklch(34.0% 0.149 292.5);
Tailwind
colors: {
  custom: {
    50: '#7a5da3',
    500: '#3e1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d7c;
$custom-light: #7a5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d7c",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 260.842,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.33983,
    "c": 0.14902,
    "h": 292.5
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#3E1D7C
secondary
#8BB045
accent
#E543AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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