#3E1F9D#3E1F9D

#3E1F9D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.186 H 284.2°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#3E1F9D
RGBrgb(62, 31, 157)
HSLhsl(255, 67%, 37%)
HSVhsv(255, 80%, 62%)
CMYKcmyk(60.5%, 80.3%, 0%, 38.4%)
CIE-LABlab(25.07, 47.10, -62.57)
CIE-LCHlch(25.07, 78.32, 306.97°)
OKLaboklab(37.53% 0.0457 -0.1804)
OKLCHoklch(37.53% 0.186 284.2)
XYZxyz(8.5605, 4.4379, 32.2972)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F9D #7E9D1F
analogous
#1F3F9D #3E1F9D #7D1F9D
triadic
#3E1F9D #9D3E1F #1F9D3E
tetradic
#3E1F9D #9D1F3F #7E9D1F #1F9D7D
square
#3E1F9D #9D1F3F #7E9D1F #1F9D7D
split-complementary
#3E1F9D #9D7D1F #3F9D1F
monochromatic
#160B37 #2A156A #3E1F9D #5229D0 #7958DE

Accessibility & contrast

On white

11.13
#3E1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1F9D
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F9D#FFFFFF#000000##FFFFFF
##3E1F9D1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e1f9d;
/* rgb */ color: rgb(62, 31, 157);
/* oklch */ color: oklch(37.5% 0.186 284.2);
Tailwind
colors: {
  custom: {
    50: '#8060bb',
    500: '#3e1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f9d;
$custom-light: #8060bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f9d",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 254.762,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37531,
    "c": 0.18606,
    "h": 284.2
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#3E1F9D
secondary
#A7C256
accent
#EA3EC0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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