#3E1F99#3E1F99

#3E1F99 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.181 H 285.0°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3E1F99
RGBrgb(62, 31, 153)
HSLhsl(255, 66%, 36%)
HSVhsv(255, 80%, 60%)
CMYKcmyk(59.5%, 79.7%, 0%, 40%)
CIE-LABlab(24.65, 45.94, -60.81)
CIE-LCHlch(24.65, 76.21, 307.07°)
OKLaboklab(37.11% 0.047 -0.1752)
OKLCHoklch(37.11% 0.181 285)
XYZxyz(8.2246, 4.3035, 30.5281)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F99 #7A991F
analogous
#1F3D99 #3E1F99 #7B1F99
triadic
#3E1F99 #993E1F #1F993E
tetradic
#3E1F99 #991F3D #7A991F #1F997B
square
#3E1F99 #991F3D #7A991F #1F997B
split-complementary
#3E1F99 #997B1F #3D991F
monochromatic
#150A33 #291566 #3E1F99 #5329CC #7856DD

Accessibility & contrast

On white

11.29
#3E1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3E1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F99
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F99#FFFFFF#000000##FFFFFF
##3E1F991.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#08435C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e1f99;
/* rgb */ color: rgb(62, 31, 153);
/* oklch */ color: oklch(37.1% 0.181 285.0);
Tailwind
colors: {
  custom: {
    50: '#7f5fb8',
    500: '#3e1f99',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f99;
$custom-light: #7f5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f99",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 255.246,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37115,
    "c": 0.18141,
    "h": 285
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#3E1F99
secondary
#A5C054
accent
#E93FBE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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