#3E1790#3E1790

#3E1790 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.178 H 288.0°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#3E1790
RGBrgb(62, 23, 144)
HSLhsl(259, 72%, 33%)
HSVhsv(259, 84%, 56%)
CMYKcmyk(56.9%, 84%, 0%, 43.5%)
CIE-LABlab(22.48, 46.92, -58.84)
CIE-LCHlch(22.48, 75.26, 308.57°)
OKLaboklab(35.33% 0.055 -0.1694)
OKLCHoklch(35.33% 0.178 288)
XYZxyz(7.3256, 3.6502, 26.6987)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1790 #699017
analogous
#172C90 #3E1790 #7A1790
triadic
#3E1790 #903E17 #17903E
tetradic
#3E1790 #90172C #699017 #17907A
square
#3E1790 #90172C #699017 #17907A
split-complementary
#3E1790 #907A17 #2C9017
monochromatic
#110626 #270F5B #3E1790 #551FC5 #7441E1

Accessibility & contrast

On white

12.14
#3E1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1790
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1790#FFFFFF#000000##FFFFFF
##3E17901.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#193C55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e1790;
/* rgb */ color: rgb(62, 23, 144);
/* oklch */ color: oklch(35.3% 0.178 288.0);
Tailwind
colors: {
  custom: {
    50: '#7e5bb2',
    500: '#3e1790',
    950: '#000000',
  },
}
SCSS
$custom: #3e1790;
$custom-light: #7e5bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1790",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 259.339,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35328,
    "c": 0.17808,
    "h": 288
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#3E1790
secondary
#98C142
accent
#EF39B4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1790

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

Preview Lab → · Contrast checker → · Palette generator →

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