#3E1672#3E1672

#3E1672 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.145 H 297.1°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#3E1672
RGBrgb(62, 22, 114)
HSLhsl(266, 68%, 27%)
HSVhsv(266, 81%, 45%)
CMYKcmyk(45.6%, 80.7%, 0%, 55.3%)
CIE-LABlab(19.28, 39.08, -45.11)
CIE-LCHlch(19.28, 59.69, 310.91°)
OKLaboklab(32.19% 0.0661 -0.1292)
OKLCHoklch(32.19% 0.145 297.1)
XYZxyz(5.3100, 2.8127, 16.1795)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1672 #4A7216
analogous
#161C72 #3E1672 #6C1672
triadic
#3E1672 #723E16 #16723E
tetradic
#3E1672 #72161C #4A7216 #16726C
square
#3E1672 #72161C #4A7216 #16726C
split-complementary
#3E1672 #726C16 #1C7216
monochromatic
#0E051A #220C3F #3E1672 #5A20A5 #762CD6

Accessibility & contrast

On white

13.44
#3E1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3E1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1672
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1672#FFFFFF#000000##FFFFFF
##3E16721.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1672;
/* rgb */ color: rgb(62, 22, 114);
/* oklch */ color: oklch(32.2% 0.145 297.1);
Tailwind
colors: {
  custom: {
    50: '#79589b',
    500: '#3e1672',
    950: '#000000',
  },
}
SCSS
$custom: #3e1672;
$custom-light: #79589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1672",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 266.087,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32186,
    "c": 0.14508,
    "h": 297.1
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#3E1672
secondary
#79A83C
accent
#EB3D9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1672

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

Preview Lab → · Contrast checker → · Palette generator →

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