#3E1E7F#3E1E7F

#3E1E7F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.152 H 291.4°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#3E1E7F
RGBrgb(62, 30, 127)
HSLhsl(260, 62%, 31%)
HSVhsv(260, 76%, 50%)
CMYKcmyk(51.2%, 76.4%, 0%, 50.2%)
CIE-LABlab(21.89, 38.83, -49.15)
CIE-LCHlch(21.89, 62.63, 308.31°)
OKLaboklab(34.4% 0.0552 -0.1411)
OKLCHoklch(34.4% 0.152 291.4)
XYZxyz(6.2806, 3.4847, 20.4163)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E7F #5F7F1E
analogous
#1E2E7F #3E1E7F #6E1E7F
triadic
#3E1E7F #7F3E1E #1E7F3E
tetradic
#3E1E7F #7F1E2E #5F7F1E #1E7F6E
square
#3E1E7F #7F1E2E #5F7F1E #1E7F6E
split-complementary
#3E1E7F #7F6E1E #2E7F1E
monochromatic
#0E071C #26124D #3E1E7F #562AB1 #7344D3

Accessibility & contrast

On white

12.37
#3E1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E7F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E7F#FFFFFF#000000##FFFFFF
##3E1E7F1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#28384D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1e7f;
/* rgb */ color: rgb(62, 30, 127);
/* oklch */ color: oklch(34.4% 0.152 291.4);
Tailwind
colors: {
  custom: {
    50: '#7b5da5',
    500: '#3e1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e7f;
$custom-light: #7b5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e7f",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 259.794,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34398,
    "c": 0.15151,
    "h": 291.4
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#3E1E7F
secondary
#8FB247
accent
#E543AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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