#3E1B95#3E1B95

#3E1B95 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.180 H 286.4°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#3E1B95
RGBrgb(62, 27, 149)
HSLhsl(257, 69%, 35%)
HSVhsv(257, 82%, 58%)
CMYKcmyk(58.4%, 81.9%, 0%, 41.6%)
CIE-LABlab(23.60, 46.62, -60.09)
CIE-LCHlch(23.60, 76.05, 307.81°)
OKLaboklab(36.26% 0.0508 -0.1731)
OKLCHoklch(36.26% 0.18 286.4)
XYZxyz(7.8017, 3.9775, 28.7846)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B95 #72951B
analogous
#1B3595 #3E1B95 #7B1B95
triadic
#3E1B95 #953E1B #1B953E
tetradic
#3E1B95 #951B35 #72951B #1B957B
square
#3E1B95 #951B35 #72951B #1B957B
split-complementary
#3E1B95 #957B1B #35951B
monochromatic
#13082D #281261 #3E1B95 #5424C9 #764CDF

Accessibility & contrast

On white

11.70
#3E1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3E1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B95
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B95#FFFFFF#000000##FFFFFF
##3E1B951.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#124059
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e1b95;
/* rgb */ color: rgb(62, 27, 149);
/* oklch */ color: oklch(36.3% 0.180 286.4);
Tailwind
colors: {
  custom: {
    50: '#7f5db5',
    500: '#3e1b95',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b95;
$custom-light: #7f5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b95",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 257.213,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36258,
    "c": 0.18037,
    "h": 286.4
  },
  "luminance": 0.03978
}

Semantic roles & 50–950 ramp

primary
#3E1B95
secondary
#9FC14B
accent
#EC3CBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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