#3E1895#3E1895

#3E1895 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 36.0% C 0.183 H 286.7°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#3E1895
RGBrgb(62, 24, 149)
HSLhsl(258, 72%, 34%)
HSVhsv(258, 84%, 58%)
CMYKcmyk(58.4%, 83.9%, 0%, 41.6%)
CIE-LABlab(23.16, 47.90, -60.81)
CIE-LCHlch(23.16, 77.41, 308.23°)
OKLaboklab(35.96% 0.0526 -0.1751)
OKLCHoklch(35.96% 0.183 286.7)
XYZxyz(7.7364, 3.8469, 28.7628)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1895 #6F9518
analogous
#183195 #3E1895 #7D1895
triadic
#3E1895 #953E18 #18953E
tetradic
#3E1895 #951831 #6F9518 #18957D
square
#3E1895 #951831 #6F9518 #18957D
split-complementary
#3E1895 #957D18 #319518
monochromatic
#12072C #281060 #3E1895 #5420CA #7546E1

Accessibility & contrast

On white

11.87
#3E1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3E1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1895
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1895#FFFFFF#000000##FFFFFF
##3E18951.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#123F58
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1895;
/* rgb */ color: rgb(62, 24, 149);
/* oklch */ color: oklch(36.0% 0.183 286.7);
Tailwind
colors: {
  custom: {
    50: '#7f5cb5',
    500: '#3e1895',
    950: '#000000',
  },
}
SCSS
$custom: #3e1895;
$custom-light: #7f5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1895",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 258.24,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35956,
    "c": 0.18287,
    "h": 286.7
  },
  "luminance": 0.03847
}

Semantic roles & 50–950 ramp

primary
#3E1895
secondary
#9DC246
accent
#EF39B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1895

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

Preview Lab → · Contrast checker → · Palette generator →

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