#3E1EA7#3E1EA7

#3E1EA7 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.198 H 282.5°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3E1EA7
RGBrgb(62, 30, 167)
HSLhsl(254, 70%, 39%)
HSVhsv(254, 82%, 65%)
CMYKcmyk(62.9%, 82%, 0%, 34.5%)
CIE-LABlab(25.99, 50.44, -67.14)
CIE-LCHlch(25.99, 83.97, 306.92°)
OKLaboklab(38.49% 0.043 -0.1936)
OKLCHoklch(38.49% 0.198 282.5)
XYZxyz(9.4238, 4.7420, 36.9704)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1EA7 #87A71E
analogous
#1E42A7 #3E1EA7 #821EA7
triadic
#3E1EA7 #A73E1E #1EA73E
tetradic
#3E1EA7 #A71E42 #87A71E #1EA782
square
#3E1EA7 #A71E42 #87A71E #1EA782
split-complementary
#3E1EA7 #A7821E #42A71E
monochromatic
#170B3F #2B1573 #3E1EA7 #522AD9 #7C5DE2

Accessibility & contrast

On white

10.78
#3E1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3E1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1EA7
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1EA7#FFFFFF#000000##FFFFFF
##3E1EA71.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e1ea7;
/* rgb */ color: rgb(62, 30, 167);
/* oklch */ color: oklch(38.5% 0.198 282.5);
Tailwind
colors: {
  custom: {
    50: '#8260c2',
    500: '#3e1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #3e1ea7;
$custom-light: #8260c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1ea7",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 254.015,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38485,
    "c": 0.19838,
    "h": 282.5
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#3E1EA7
secondary
#ADC65B
accent
#EC3BC3
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3E1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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