#3E1E8D#3E1E8D

#3E1E8D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.168 H 287.8°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#3E1E8D
RGBrgb(62, 30, 141)
HSLhsl(257, 65%, 34%)
HSVhsv(257, 79%, 55%)
CMYKcmyk(56%, 78.7%, 0%, 44.7%)
CIE-LABlab(23.26, 42.92, -55.69)
CIE-LCHlch(23.26, 70.31, 307.62°)
OKLaboklab(35.77% 0.0513 -0.1602)
OKLCHoklch(35.77% 0.168 287.8)
XYZxyz(7.2572, 3.8754, 25.5598)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E8D #6D8D1E
analogous
#1E368D #3E1E8D #751E8D
triadic
#3E1E8D #8D3E1E #1E8D3E
tetradic
#3E1E8D #8D1E36 #6D8D1E #1E8D75
square
#3E1E8D #8D1E36 #6D8D1E #1E8D75
split-complementary
#3E1E8D #8D751E #368D1E
monochromatic
#120928 #28135B #3E1E8D #5429BF #754CD9

Accessibility & contrast

On white

11.83
#3E1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3E1E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E8D
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E8D#FFFFFF#000000##FFFFFF
##3E1E8D1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#1C3E55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1e8d;
/* rgb */ color: rgb(62, 30, 141);
/* oklch */ color: oklch(35.8% 0.168 287.8);
Tailwind
colors: {
  custom: {
    50: '#7d5eaf',
    500: '#3e1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e8d;
$custom-light: #7d5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e8d",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 257.297,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35773,
    "c": 0.16827,
    "h": 287.8
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#3E1E8D
secondary
#9BBC4B
accent
#E840B7
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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