#3E1FA0#3E1FA0

#3E1FA0 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.190 H 283.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#3E1FA0
RGBrgb(62, 31, 160)
HSLhsl(254, 68%, 37%)
HSVhsv(254, 81%, 63%)
CMYKcmyk(61.2%, 80.6%, 0%, 37.3%)
CIE-LABlab(25.39, 47.97, -63.88)
CIE-LCHlch(25.39, 79.89, 306.91°)
OKLaboklab(37.85% 0.0448 -0.1842)
OKLCHoklch(37.85% 0.19 283.7)
XYZxyz(8.8198, 4.5416, 33.6627)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1FA0 #81A01F
analogous
#1F40A0 #3E1FA0 #7F1FA0
triadic
#3E1FA0 #A03E1F #1FA03E
tetradic
#3E1FA0 #A01F40 #81A01F #1FA07F
square
#3E1FA0 #A01F40 #81A01F #1FA07F
split-complementary
#3E1FA0 #A07F1F #40A01F
monochromatic
#160B39 #2A156D #3E1FA0 #5229D3 #7A5ADF

Accessibility & contrast

On white

11.00
#3E1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3E1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1FA0
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1FA0#FFFFFF#000000##FFFFFF
##3E1FA01.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00389E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e1fa0;
/* rgb */ color: rgb(62, 31, 160);
/* oklch */ color: oklch(37.8% 0.190 283.7);
Tailwind
colors: {
  custom: {
    50: '#8060bd',
    500: '#3e1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #3e1fa0;
$custom-light: #8060bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1fa0",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 254.419,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37846,
    "c": 0.18953,
    "h": 283.7
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#3E1FA0
secondary
#A9C358
accent
#EA3DC1
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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