#3E1562#3E1562

#3E1562 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.128 H 303.9°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#3E1562
RGBrgb(62, 21, 98)
HSLhsl(272, 65%, 23%)
HSVhsv(272, 79%, 38%)
CMYKcmyk(36.7%, 78.6%, 0%, 61.6%)
CIE-LABlab(17.66, 35.26, -37.30)
CIE-LCHlch(17.66, 51.33, 313.39°)
OKLaboklab(30.6% 0.0713 -0.1062)
OKLCHoklch(30.6% 0.128 303.9)
XYZxyz(4.4589, 2.4423, 11.7894)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1562 #396215
analogous
#171562 #3E1562 #62155F
triadic
#3E1562 #623E15 #15623E
tetradic
#3E1562 #621715 #396215 #155F62
square
#3E1562 #621715 #396215 #155F62
split-complementary
#3E1562 #5F6215 #156217
monochromatic
#100519 #1E0A30 #3E1562 #5E2094 #7E2BC7

Accessibility & contrast

On white

14.11
#3E1562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3E1562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1562
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1562#FFFFFF#000000##FFFFFF
##3E15621.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#37283A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3e1562;
/* rgb */ color: rgb(62, 21, 98);
/* oklch */ color: oklch(30.6% 0.128 303.9);
Tailwind
colors: {
  custom: {
    50: '#77578f',
    500: '#3e1562',
    950: '#000000',
  },
}
SCSS
$custom: #3e1562;
$custom-light: #77578f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1562",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 271.948,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30595,
    "c": 0.12793,
    "h": 303.9
  },
  "luminance": 0.02442
}

Semantic roles & 50–950 ramp

primary
#3E1562
secondary
#66993A
accent
#E8408E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E1562

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

Preview Lab → · Contrast checker → · Palette generator →

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