#3E1794#3E1794

#3E1794 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.183 H 287.1°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#3E1794
RGBrgb(62, 23, 148)
HSLhsl(259, 73%, 34%)
HSVhsv(259, 84%, 58%)
CMYKcmyk(58.1%, 84.5%, 0%, 42%)
CIE-LABlab(22.91, 48.03, -60.60)
CIE-LCHlch(22.91, 77.33, 308.40°)
OKLaboklab(35.75% 0.0536 -0.1745)
OKLCHoklch(35.75% 0.183 287.1)
XYZxyz(7.6367, 3.7746, 28.3374)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1794 #6D9417
analogous
#172E94 #3E1794 #7C1794
triadic
#3E1794 #943E17 #17943E
tetradic
#3E1794 #94172E #6D9417 #17947C
square
#3E1794 #94172E #6D9417 #17947C
split-complementary
#3E1794 #947C17 #2E9417
monochromatic
#12072A #280F5F #3E1794 #541FC9 #7544E2

Accessibility & contrast

On white

11.97
#3E1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3E1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1794
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1794#FFFFFF#000000##FFFFFF
##3E17941.0011.971.7611.97
#FFFFFF11.971.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#143E57
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1794;
/* rgb */ color: rgb(62, 23, 148);
/* oklch */ color: oklch(35.8% 0.183 287.1);
Tailwind
colors: {
  custom: {
    50: '#7f5bb5',
    500: '#3e1794',
    950: '#000000',
  },
}
SCSS
$custom: #3e1794;
$custom-light: #7f5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1794",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 258.72,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35754,
    "c": 0.18254,
    "h": 287.1
  },
  "luminance": 0.03775
}

Semantic roles & 50–950 ramp

primary
#3E1794
secondary
#9BC344
accent
#F038B6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1794

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

Preview Lab → · Contrast checker → · Palette generator →

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