#3E1B82#3E1B82

#3E1B82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.158 H 291.1°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#3E1B82
RGBrgb(62, 27, 130)
HSLhsl(260, 66%, 31%)
HSVhsv(260, 79%, 51%)
CMYKcmyk(52.3%, 79.2%, 0%, 49%)
CIE-LABlab(21.65, 41.20, -51.43)
CIE-LCHlch(21.65, 65.90, 308.69°)
OKLaboklab(34.32% 0.057 -0.1478)
OKLCHoklch(34.32% 0.158 291.1)
XYZxyz(6.4067, 3.4194, 21.4372)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B82 #5F821B
analogous
#1B2C82 #3E1B82 #711B82
triadic
#3E1B82 #823E1B #1B823E
tetradic
#3E1B82 #821B2C #5F821B #1B8271
square
#3E1B82 #821B2C #5F821B #1B8271
split-complementary
#3E1B82 #82711B #2C821B
monochromatic
#0E061D #26104F #3E1B82 #5626B5 #7340D7

Accessibility & contrast

On white

12.47
#3E1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3E1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B82
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B82#FFFFFF#000000##FFFFFF
##3E1B821.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#26384E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1b82;
/* rgb */ color: rgb(62, 27, 130);
/* oklch */ color: oklch(34.3% 0.158 291.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ca7',
    500: '#3e1b82',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b82;
$custom-light: #7b5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b82",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 260.388,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34319,
    "c": 0.15836,
    "h": 291.1
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#3E1B82
secondary
#8FB643
accent
#E93FAF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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