#3E1570#3E1570

#3E1570 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.144 H 298.0°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#3E1570
RGBrgb(62, 21, 112)
HSLhsl(267, 68%, 26%)
HSVhsv(267, 81%, 44%)
CMYKcmyk(44.6%, 81.2%, 0%, 56.1%)
CIE-LABlab(18.93, 38.99, -44.39)
CIE-LCHlch(18.93, 59.08, 311.30°)
OKLaboklab(31.88% 0.0675 -0.127)
OKLCHoklch(31.88% 0.144 298)
XYZxyz(5.1786, 2.7302, 15.5802)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1570 #477015
analogous
#151970 #3E1570 #6B1570
triadic
#3E1570 #703E15 #15703E
tetradic
#3E1570 #701519 #477015 #15706B
square
#3E1570 #701519 #477015 #15706B
split-complementary
#3E1570 #706B15 #197015
monochromatic
#0E051A #210B3C #3E1570 #5B1FA4 #7729D7

Accessibility & contrast

On white

13.58
#3E1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3E1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1570
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1570#FFFFFF#000000##FFFFFF
##3E15701.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#312E42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e1570;
/* rgb */ color: rgb(62, 21, 112);
/* oklch */ color: oklch(31.9% 0.144 298.0);
Tailwind
colors: {
  custom: {
    50: '#79589a',
    500: '#3e1570',
    950: '#000000',
  },
}
SCSS
$custom: #3e1570;
$custom-light: #79589a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1570",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 267.033,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31884,
    "c": 0.14387,
    "h": 298
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#3E1570
secondary
#76A63B
accent
#EB3D9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1570

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

Preview Lab → · Contrast checker → · Palette generator →

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