#3E1B9D#3E1B9D

#3E1B9D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.189 H 284.7°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3E1B9D
RGBrgb(62, 27, 157)
HSLhsl(256, 71%, 36%)
HSVhsv(256, 83%, 62%)
CMYKcmyk(60.5%, 82.8%, 0%, 38.4%)
CIE-LABlab(24.46, 48.89, -63.59)
CIE-LCHlch(24.46, 80.21, 307.56°)
OKLaboklab(37.11% 0.0481 -0.1833)
OKLCHoklch(37.11% 0.189 284.7)
XYZxyz(8.4625, 4.2418, 32.2646)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B9D #7A9D1B
analogous
#1B399D #3E1B9D #7F1B9D
triadic
#3E1B9D #9D3E1B #1B9D3E
tetradic
#3E1B9D #9D1B39 #7A9D1B #1B9D7F
square
#3E1B9D #9D1B39 #7A9D1B #1B9D7F
split-complementary
#3E1B9D #9D7F1B #399D1B
monochromatic
#150935 #291269 #3E1B9D #5324D1 #7851E1

Accessibility & contrast

On white

11.36
#3E1B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E1B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B9D
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B9D#FFFFFF#000000##FFFFFF
##3E1B9D1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA1
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e1b9d;
/* rgb */ color: rgb(62, 27, 157);
/* oklch */ color: oklch(37.1% 0.189 284.7);
Tailwind
colors: {
  custom: {
    50: '#805ebb',
    500: '#3e1b9d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b9d;
$custom-light: #805ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b9d",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 256.154,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37106,
    "c": 0.18947,
    "h": 284.7
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#3E1B9D
secondary
#A5C450
accent
#ED3ABD
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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