#3E2160#3E2160

#3E2160 is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.1% C 0.108 H 301.8°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#3E2160
RGBrgb(62, 33, 96)
HSLhsl(268, 49%, 25%)
HSVhsv(268, 66%, 38%)
CMYKcmyk(35.4%, 65.6%, 0%, 62.4%)
CIE-LABlab(19.87, 28.15, -32.39)
CIE-LCHlch(19.87, 42.92, 310.99°)
OKLaboklab(32.13% 0.057 -0.0919)
OKLCHoklch(32.13% 0.108 301.8)
XYZxyz(4.6413, 2.9564, 11.3902)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2160 #436021
analogous
#212460 #3E2160 #5D2160
triadic
#3E2160 #603E21 #21603E
tetradic
#3E2160 #602124 #436021 #21605D
square
#3E2160 #602124 #436021 #21605D
split-complementary
#3E2160 #605D21 #246021
monochromatic
#0F0817 #211132 #3E2160 #5B318E #7940BB

Accessibility & contrast

On white

13.20
#3E2160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3E2160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2160
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2160#FFFFFF#000000##FFFFFF
##3E21601.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003062
Deuteranopia (green-blind)
#0D305F
Tritanopia (blue-blind)
#372E3D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e2160;
/* rgb */ color: rgb(62, 33, 96);
/* oklch */ color: oklch(32.1% 0.108 301.8);
Tailwind
colors: {
  custom: {
    50: '#765e8e',
    500: '#3e2160',
    950: '#000000',
  },
}
SCSS
$custom: #3e2160;
$custom-light: #765e8e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2160",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 267.619,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3213,
    "c": 0.10811,
    "h": 301.8
  },
  "luminance": 0.02956
}

Semantic roles & 50–950 ramp

primary
#3E2160
secondary
#719449
accent
#D84F99
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #3E2160

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

Preview Lab → · Contrast checker → · Palette generator →

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