#3E1F98#3E1F98

#3E1F98 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.180 H 285.2°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#3E1F98
RGBrgb(62, 31, 152)
HSLhsl(255, 66%, 36%)
HSVhsv(255, 80%, 60%)
CMYKcmyk(59.2%, 79.6%, 0%, 40.4%)
CIE-LABlab(24.55, 45.65, -60.37)
CIE-LCHlch(24.55, 75.68, 307.09°)
OKLaboklab(37.01% 0.0473 -0.1739)
OKLCHoklch(37.01% 0.18 285.2)
XYZxyz(8.1424, 4.2706, 30.0949)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F98 #79981F
analogous
#1F3C98 #3E1F98 #7A1F98
triadic
#3E1F98 #983E1F #1F983E
tetradic
#3E1F98 #981F3C #79981F #1F987A
square
#3E1F98 #981F3C #79981F #1F987A
split-complementary
#3E1F98 #987A1F #3C981F
monochromatic
#150A32 #291565 #3E1F98 #5329CB #7855DC

Accessibility & contrast

On white

11.33
#3E1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F98
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F98#FFFFFF#000000##FFFFFF
##3E1F981.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#0B435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e1f98;
/* rgb */ color: rgb(62, 31, 152);
/* oklch */ color: oklch(37.0% 0.180 285.2);
Tailwind
colors: {
  custom: {
    50: '#7f5fb7',
    500: '#3e1f98',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f98;
$custom-light: #7f5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f98",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 255.372,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37012,
    "c": 0.18024,
    "h": 285.2
  },
  "luminance": 0.04271
}

Semantic roles & 50–950 ramp

primary
#3E1F98
secondary
#A4C053
accent
#E93FBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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