#3E1FA6#3E1FA6

#3E1FA6 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.196 H 282.6°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#3E1FA6
RGBrgb(62, 31, 166)
HSLhsl(254, 69%, 39%)
HSVhsv(254, 81%, 65%)
CMYKcmyk(62.7%, 81.3%, 0%, 34.9%)
CIE-LABlab(26.03, 49.71, -66.46)
CIE-LCHlch(26.03, 83.00, 306.80°)
OKLaboklab(38.48% 0.0428 -0.1917)
OKLCHoklch(38.48% 0.196 282.6)
XYZxyz(9.3574, 4.7566, 36.4940)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1FA6 #87A61F
analogous
#1F43A6 #3E1FA6 #811FA6
triadic
#3E1FA6 #A63E1F #1FA63E
tetradic
#3E1FA6 #A61F43 #87A61F #1FA681
square
#3E1FA6 #A61F43 #87A61F #1FA681
split-complementary
#3E1FA6 #A6811F #43A61F
monochromatic
#170C3F #2B1572 #3E1FA6 #522BD7 #7C5EE1

Accessibility & contrast

On white

10.76
#3E1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1FA6
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1FA6#FFFFFF#000000##FFFFFF
##3E1FA61.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1fa6;
/* rgb */ color: rgb(62, 31, 166);
/* oklch */ color: oklch(38.5% 0.196 282.6);
Tailwind
colors: {
  custom: {
    50: '#8160c2',
    500: '#3e1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #3e1fa6;
$custom-light: #8160c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1fa6",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 253.778,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38483,
    "c": 0.19642,
    "h": 282.6
  },
  "luminance": 0.04757
}

Semantic roles & 50–950 ramp

primary
#3E1FA6
secondary
#ADC55B
accent
#EB3CC3
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3E1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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