#3E1FA7#3E1FA7

#3E1FA7 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.198 H 282.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#3E1FA7
RGBrgb(62, 31, 167)
HSLhsl(254, 69%, 39%)
HSVhsv(254, 81%, 65%)
CMYKcmyk(62.9%, 81.4%, 0%, 34.5%)
CIE-LABlab(26.14, 50.00, -66.89)
CIE-LCHlch(26.14, 83.51, 306.78°)
OKLaboklab(38.59% 0.0425 -0.1929)
OKLCHoklch(38.59% 0.198 282.4)
XYZxyz(9.4495, 4.7934, 36.9790)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1FA7 #88A71F
analogous
#1F44A7 #3E1FA7 #821FA7
triadic
#3E1FA7 #A73E1F #1FA73E
tetradic
#3E1FA7 #A71F44 #88A71F #1FA782
square
#3E1FA7 #A71F44 #88A71F #1FA782
split-complementary
#3E1FA7 #A7821F #44A71F
monochromatic
#180C40 #2B1573 #3E1FA7 #532BD8 #7D5FE1

Accessibility & contrast

On white

10.72
#3E1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3E1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1FA7
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1FA7#FFFFFF#000000##FFFFFF
##3E1FA71.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1fa7;
/* rgb */ color: rgb(62, 31, 167);
/* oklch */ color: oklch(38.6% 0.198 282.4);
Tailwind
colors: {
  custom: {
    50: '#8260c2',
    500: '#3e1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #3e1fa7;
$custom-light: #8260c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1fa7",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 253.676,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38589,
    "c": 0.19757,
    "h": 282.4
  },
  "luminance": 0.04794
}

Semantic roles & 50–950 ramp

primary
#3E1FA7
secondary
#AEC65C
accent
#EC3CC4
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3E1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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