#3E1F85#3E1F85

#3E1F85 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.158 H 289.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#3E1F85
RGBrgb(62, 31, 133)
HSLhsl(258, 62%, 32%)
HSVhsv(258, 77%, 52%)
CMYKcmyk(53.4%, 76.7%, 0%, 47.8%)
CIE-LABlab(22.64, 40.07, -51.69)
CIE-LCHlch(22.64, 65.40, 307.78°)
OKLaboklab(35.1% 0.0528 -0.1485)
OKLCHoklch(35.1% 0.158 289.6)
XYZxyz(6.7090, 3.6973, 22.5459)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F85 #66851F
analogous
#1F3385 #3E1F85 #711F85
triadic
#3E1F85 #853E1F #1F853E
tetradic
#3E1F85 #851F33 #66851F #1F8571
square
#3E1F85 #851F33 #66851F #1F8571
split-complementary
#3E1F85 #85711F #33851F
monochromatic
#100822 #271353 #3E1F85 #552BB7 #744AD5

Accessibility & contrast

On white

12.07
#3E1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3E1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F85
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F85#FFFFFF#000000##FFFFFF
##3E1F851.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#243B50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e1f85;
/* rgb */ color: rgb(62, 31, 133);
/* oklch */ color: oklch(35.1% 0.158 289.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ea9',
    500: '#3e1f85',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f85;
$custom-light: #7b5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f85",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 258.235,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35105,
    "c": 0.15765,
    "h": 289.6
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#3E1F85
secondary
#96B749
accent
#E543B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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