#3E1F89#3E1F89

#3E1F89 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.162 H 288.6°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#3E1F89
RGBrgb(62, 31, 137)
HSLhsl(258, 63%, 33%)
HSVhsv(258, 77%, 54%)
CMYKcmyk(54.7%, 77.4%, 0%, 46.3%)
CIE-LABlab(23.03, 41.24, -53.56)
CIE-LCHlch(23.03, 67.60, 307.60°)
OKLaboklab(35.5% 0.0517 -0.154)
OKLCHoklch(35.5% 0.162 288.6)
XYZxyz(6.9906, 3.8099, 24.0291)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F89 #6A891F
analogous
#1F3589 #3E1F89 #731F89
triadic
#3E1F89 #893E1F #1F893E
tetradic
#3E1F89 #891F35 #6A891F #1F8973
square
#3E1F89 #891F35 #6A891F #1F8973
split-complementary
#3E1F89 #89731F #35891F
monochromatic
#110825 #271457 #3E1F89 #552ABB #744CD6

Accessibility & contrast

On white

11.92
#3E1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3E1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F89
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F89#FFFFFF#000000##FFFFFF
##3E1F891.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#203C53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1f89;
/* rgb */ color: rgb(62, 31, 137);
/* oklch */ color: oklch(35.5% 0.162 288.6);
Tailwind
colors: {
  custom: {
    50: '#7c5eac',
    500: '#3e1f89',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f89;
$custom-light: #7c5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f89",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 257.547,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35496,
    "c": 0.16247,
    "h": 288.6
  },
  "luminance": 0.0381
}

Semantic roles & 50–950 ramp

primary
#3E1F89
secondary
#99B94B
accent
#E642B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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