#3E2180#3E2180

#3E2180 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.149 H 290.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#3E2180
RGBrgb(62, 33, 128)
HSLhsl(258, 59%, 32%)
HSVhsv(258, 74%, 50%)
CMYKcmyk(51.6%, 74.2%, 0%, 49.8%)
CIE-LABlab(22.55, 37.53, -48.70)
CIE-LCHlch(22.55, 61.48, 307.62°)
OKLaboklab(34.89% 0.0522 -0.1398)
OKLCHoklch(34.89% 0.149 290.5)
XYZxyz(6.4256, 3.6701, 20.7877)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2180 #638021
analogous
#213480 #3E2180 #6E2180
triadic
#3E2180 #803E21 #21803E
tetradic
#3E2180 #802134 #638021 #21806E
square
#3E2180 #802134 #638021 #21806E
split-complementary
#3E2180 #806E21 #348021
monochromatic
#0F081F #26144F #3E2180 #562EB1 #744BD1

Accessibility & contrast

On white

12.11
#3E2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2180
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2180#FFFFFF#000000##FFFFFF
##3E21801.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#273A4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e2180;
/* rgb */ color: rgb(62, 33, 128);
/* oklch */ color: oklch(34.9% 0.149 290.5);
Tailwind
colors: {
  custom: {
    50: '#7a5fa6',
    500: '#3e2180',
    950: '#000000',
  },
}
SCSS
$custom: #3e2180;
$custom-light: #7a5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2180",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 258.316,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34893,
    "c": 0.14922,
    "h": 290.5
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#3E2180
secondary
#93B34A
accent
#E246B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E2180

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

Preview Lab → · Contrast checker → · Palette generator →

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