#3E1EA6#3E1EA6

#3E1EA6 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.197 H 282.7°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#3E1EA6
RGBrgb(62, 30, 166)
HSLhsl(254, 69%, 38%)
HSVhsv(254, 82%, 65%)
CMYKcmyk(62.7%, 81.9%, 0%, 34.9%)
CIE-LABlab(25.88, 50.15, -66.71)
CIE-LCHlch(25.88, 83.46, 306.94°)
OKLaboklab(38.38% 0.0434 -0.1924)
OKLCHoklch(38.38% 0.197 282.7)
XYZxyz(9.3317, 4.7052, 36.4854)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1EA6 #86A61E
analogous
#1E42A6 #3E1EA6 #821EA6
triadic
#3E1EA6 #A63E1E #1EA63E
tetradic
#3E1EA6 #A61E42 #86A61E #1EA682
square
#3E1EA6 #A61E42 #86A61E #1EA682
split-complementary
#3E1EA6 #A6821E #42A61E
monochromatic
#170B3E #2B1572 #3E1EA6 #5229D8 #7C5DE2

Accessibility & contrast

On white

10.82
#3E1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3E1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1EA6
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1EA6#FFFFFF#000000##FFFFFF
##3E1EA61.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e1ea6;
/* rgb */ color: rgb(62, 30, 166);
/* oklch */ color: oklch(38.4% 0.197 282.7);
Tailwind
colors: {
  custom: {
    50: '#8160c2',
    500: '#3e1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #3e1ea6;
$custom-light: #8160c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1ea6",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 254.118,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38378,
    "c": 0.19724,
    "h": 282.7
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

primary
#3E1EA6
secondary
#ACC65A
accent
#EC3CC3
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3E1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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