#3E1E7A#3E1E7A

#3E1E7A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.145 H 292.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#3E1E7A
RGBrgb(62, 30, 122)
HSLhsl(261, 61%, 30%)
HSVhsv(261, 75%, 48%)
CMYKcmyk(49.2%, 75.4%, 0%, 52.2%)
CIE-LABlab(21.42, 37.37, -46.73)
CIE-LCHlch(21.42, 59.84, 308.65°)
OKLaboklab(33.92% 0.0565 -0.134)
OKLCHoklch(33.92% 0.145 292.9)
XYZxyz(5.9628, 3.3576, 18.7425)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E7A #5A7A1E
analogous
#1E2C7A #3E1E7A #6C1E7A
triadic
#3E1E7A #7A3E1E #1E7A3E
tetradic
#3E1E7A #7A1E2C #5A7A1E #1E7A6C
square
#3E1E7A #7A1E2C #5A7A1E #1E7A6C
split-complementary
#3E1E7A #7A6C1E #2C7A1E
monochromatic
#0C0619 #251249 #3E1E7A #572AAB #7442D0

Accessibility & contrast

On white

12.56
#3E1E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3E1E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E7A
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E7A#FFFFFF#000000##FFFFFF
##3E1E7A1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#2C364A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1e7a;
/* rgb */ color: rgb(62, 30, 122);
/* oklch */ color: oklch(33.9% 0.145 292.9);
Tailwind
colors: {
  custom: {
    50: '#7a5da1',
    500: '#3e1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e7a;
$custom-light: #7a5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e7a",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 260.87,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33925,
    "c": 0.14542,
    "h": 292.9
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#3E1E7A
secondary
#8AAE46
accent
#E444AC
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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