#3E1B8E#3E1B8E

#3E1B8E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.172 H 288.0°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#3E1B8E
RGBrgb(62, 27, 142)
HSLhsl(258, 68%, 33%)
HSVhsv(258, 81%, 56%)
CMYKcmyk(56.3%, 81%, 0%, 44.3%)
CIE-LABlab(22.86, 44.63, -56.96)
CIE-LCHlch(22.86, 72.36, 308.08°)
OKLaboklab(35.53% 0.0532 -0.1639)
OKLCHoklch(35.53% 0.172 288)
XYZxyz(7.2596, 3.7606, 25.9293)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B8E #6B8E1B
analogous
#1B318E #3E1B8E #771B8E
triadic
#3E1B8E #8E3E1B #1B8E3E
tetradic
#3E1B8E #8E1B31 #6B8E1B #1B8E77
square
#3E1B8E #8E1B31 #6B8E1B #1B8E77
split-complementary
#3E1B8E #8E771B #318E1B
monochromatic
#110727 #28115B #3E1B8E #5425C1 #7547DC

Accessibility & contrast

On white

11.98
#3E1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3E1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B8E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B8E#FFFFFF#000000##FFFFFF
##3E1B8E1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#1B3D55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1b8e;
/* rgb */ color: rgb(62, 27, 142);
/* oklch */ color: oklch(35.5% 0.172 288.0);
Tailwind
colors: {
  custom: {
    50: '#7d5db0',
    500: '#3e1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b8e;
$custom-light: #7d5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b8e",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 258.261,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35531,
    "c": 0.17233,
    "h": 288
  },
  "luminance": 0.03761
}

Semantic roles & 50–950 ramp

primary
#3E1B8E
secondary
#9ABE47
accent
#EB3DB6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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