#3E1772#3E1772

#3E1772 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.144 H 296.9°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#3E1772
RGBrgb(62, 23, 114)
HSLhsl(266, 66%, 27%)
HSVhsv(266, 80%, 45%)
CMYKcmyk(45.6%, 79.8%, 0%, 55.3%)
CIE-LABlab(19.44, 38.62, -44.84)
CIE-LCHlch(19.44, 59.18, 310.73°)
OKLaboklab(32.3% 0.0652 -0.1284)
OKLCHoklch(32.3% 0.144 296.9)
XYZxyz(5.3295, 2.8517, 16.1860)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1772 #4B7217
analogous
#171E72 #3E1772 #6C1772
triadic
#3E1772 #723E17 #17723E
tetradic
#3E1772 #72171E #4B7217 #17726C
square
#3E1772 #72171E #4B7217 #17726C
split-complementary
#3E1772 #726C17 #1E7217
monochromatic
#0E0519 #220D3F #3E1772 #5A21A5 #762ED5

Accessibility & contrast

On white

13.37
#3E1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3E1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1772
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1772#FFFFFF#000000##FFFFFF
##3E17721.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#303044
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3e1772;
/* rgb */ color: rgb(62, 23, 114);
/* oklch */ color: oklch(32.3% 0.144 296.9);
Tailwind
colors: {
  custom: {
    50: '#79599b',
    500: '#3e1772',
    950: '#000000',
  },
}
SCSS
$custom: #3e1772;
$custom-light: #79599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1772",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 265.714,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32299,
    "c": 0.14398,
    "h": 296.9
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#3E1772
secondary
#7AA83D
accent
#E93EA0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1772

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

Preview Lab → · Contrast checker → · Palette generator →

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