#3E1F9E#3E1F9E

#3E1F9E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.187 H 284.0°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#3E1F9E
RGBrgb(62, 31, 158)
HSLhsl(255, 67%, 37%)
HSVhsv(255, 80%, 62%)
CMYKcmyk(60.8%, 80.4%, 0%, 38%)
CIE-LABlab(25.17, 47.39, -63.01)
CIE-LCHlch(25.17, 78.84, 306.95°)
OKLaboklab(37.64% 0.0454 -0.1816)
OKLCHoklch(37.64% 0.187 284)
XYZxyz(8.6462, 4.4722, 32.7487)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F9E #7F9E1F
analogous
#1F3F9E #3E1F9E #7E1F9E
triadic
#3E1F9E #9E3E1F #1F9E3E
tetradic
#3E1F9E #9E1F3F #7F9E1F #1F9E7E
square
#3E1F9E #9E1F3F #7F9E1F #1F9E7E
split-complementary
#3E1F9E #9E7E1F #3F9E1F
monochromatic
#160B38 #2A156B #3E1F9E #5229D1 #7A59DE

Accessibility & contrast

On white

11.08
#3E1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3E1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F9E
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F9E#FFFFFF#000000##FFFFFF
##3E1F9E1.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e1f9e;
/* rgb */ color: rgb(62, 31, 158);
/* oklch */ color: oklch(37.6% 0.187 284.0);
Tailwind
colors: {
  custom: {
    50: '#8060bc',
    500: '#3e1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f9e;
$custom-light: #8060bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f9e",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 254.646,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37636,
    "c": 0.18722,
    "h": 284
  },
  "luminance": 0.04473
}

Semantic roles & 50–950 ramp

primary
#3E1F9E
secondary
#A8C256
accent
#EA3EC0
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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